[EJB 3.0] - Entitymanager Persistent
by poyge394
Hi,
i have 2 entity bean, Rollingstock and Schedule.
Hear is some code:
| rollingstock = new Rollingstock();
| rollingstock.setNextRoute( "STH" );
| rollingstock.setRoute( "HALL" );
| schedule = new Schedule();
| rollingstock.setSchedule( schedule );
|
So now i whant to persist the entitys, i thought that i just neded to do:
manager.persist(rollingstock);
then bouth rollingstock and schedule would be persist, but i get a exception when i do that.
i must do this to get both persist:
| manager.persist(rollingstock);
| manager.persist(schedule);
|
is thair any better way to persist entitys, Because in my Rollingstock entity i have a lot off relations, so when i get a Rollingstock i just whant to run persist(rollingstocko);
now i must take out evrything and do persist on each entity.
any clarification ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042833#4042833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042833
17 years, 4 months
[JBoss Seam] - Re: Trinidad PPR/Ajax and Seam
by smithbstl
Chris, I have followed your instructions and am not seeing the conversation propagated.
1st page has a conversation id (cid) of 1
2nd page (long running conversation) cid=2
3rd page(page with dialog link) cid=2
dialog page cid=4
I have not changed anything in your project other than the DataSource reference in persistence.xml
anonymous wrote : Maybe something in Seam 1.3. Probably need to use the trinidad-seam extension that the JBoss guys are creating with some added "glue" to get the conversation to propagate correctly across dialogs. Hopefully with this ground work they can think of something a little more elegant than this quick hack.
Where have you heard about a trinidad-seam extenstion? I can't find anything in jira about it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042824#4042824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042824
17 years, 4 months