Hibernate

Hibernate

Tips :

1. When using auto allocated id's, it is important to call fush() after a save(), this load the 'id' back into your memory model. The reason you have to do this is due to caching, the data won't be written back to the database until flush() is called.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License