[jboss-user] [JBoss Seam] - Re: DataModel
lightbulb432
do-not-reply at jboss.com
Mon Feb 12 12:15:31 EST 2007
anonymous wrote : What I'm trying to tell you is that you have to update the DataModel when you change the data.
That works (i.e. calling the factory method to update the DataModel) when the Factory method grabs results from the database. But I have a Factory that grabs results from another entity that has just been updated.
My DataModel is a collection of entities from another entity. e.g. myA.getCollectionOfBs(). My remove method from the DataModel does the following:
em.remove(b);
| // em.flush();
| runFactory();
runFactory() simply does a myA.getCollectionOfBs(), which returns the same set of entities (not removing the entity I just got rid of). I tried doing a flush where I've commented it out above, but that didn't help.
What can I do to get these changes reflected? (Short of just doing a query...shouldn't I be able to get them straight from the entities?)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015205#4015205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015205
More information about the jboss-user
mailing list