Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EntityManager question

 
Alex Bokov
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
just started using hibernate entity manager with spring injection on tomcat and I have some questions.
My application does some classic steps: spring creates entity manager and injects it in some another object where it can be used.
The next step is getting list of some objects representing some info in data base like this:


And after some modifications on myRecords I need to save them again.
Now it looks like myRecords list is detached. My question is: can I merge/update entire list at once or I have to iterate it and merge each list element individually.
All transactions managed by spring.
 
Alex Bokov
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hire is my applicationContext.xml

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"alex pp", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic