Persisting a List

2011-05-19 Thread Jason Ferguson
I'm using this method in a Repository class and was wondering if someone could do a quick sanity check on it: @Transactional public void persistList(List objectList) throws RepositoryException { EntityManager em = entityManagerFactory.createEntityManager(); try {

Re: OpenJPA and GWT Serialization

2011-04-11 Thread Jason Ferguson
tation is a little light in places. The source code is available >> though, and may be of some help (I have no experience with GWT and can't >> really judge). >> >> HTH >> -mike >> >> On Sat, Apr 9, 2011 at 6:18 PM, Jason Ferguson >> wrote: >&g

Re: OpenJPA and GWT Serialization

2011-04-09 Thread Jason Ferguson
close(). > > [1] http://openjpa.markmail.org/thread/sczpivhncne27co4 > [2] > http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_detach_state--- > openjpa.DetachState=loaded(LiteAutoDetach=true) > > Thanks, > Rick > > On Sat, Apr 9, 2011 at 6:5

OpenJPA and GWT Serialization

2011-04-09 Thread Jason Ferguson
Sorry if this is a frequently asked question. I have an entity, Location, which has a bidirectional OneToMany/ManyToOne relationship with another entity, BorderPoint. Both entities implement Serializable and IsSerializable. The BorderPoint collection within the Location object is an ArrayList. Un

Help Persisting a List

2011-04-05 Thread Jason Ferguson
I have two Entities: Location and BorderPoint. Location contains a List of BorderPoint, with a bidirectional mapping between them. The list containing the BorderPoints can be quite large (9,000 is not unheard of). Unfortunately, the attempt to persist a list fails with the following exception: [ER