Senior |
|
Joined: Tue Aug 01, 2006 9:24 pm Posts: 120
|
I think you might misunderstand how a session works. Sessions do not automatically update the database you need to actually call update or save on an persistent object for this to happen.
"Select *" is usually slower than declaring each field. You might want to try declaring the fields or annotation.
If your annotations are large then include in the Select only the Annotations you actually need. So that hibernate doesn't load the whole hierarchy.
Use lazy loading properly. Don't lazy load objects you always need. And do lazy load objects that you rarely need.
I am not sure about @Version I haven't used it, but take a look through the hibernate documentation I am sure it's in there somewhere.
_________________ Please rate my replies as I need points for all of my questions also.
|
|