[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
gzoller
do-not-reply at jboss.com
Fri Apr 6 18:59:56 EDT 2007
Got it! A little Easter present at the last moment. Here's the correct way to handle the delete method for people who may have the same issue I did:
| public void delete() {
| timecardHome.getEntityManager().flush();
| timecardHome.getEntityManager().joinTransaction();
| projectHome.getInstance().getTimecard().remove(tc);
| timecardHome.setId(new Long(tc.getTimecardId()));
| timecardHome.find();
| timecardHome.wire();
| timecardHome.remove();
| tc = null;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035474#4035474
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035474
More information about the jboss-user
mailing list