Re: Persisting a List

2011-05-28 Thread Rick Curtis
Jason - First off, your loader code seems to be valid and my only suggestion would be to bump %100 to %1000. That will help performance ... as long as your BorderPoint object isn't huge. > I'm using it to persist data to a table that is quite large, and performance seemed to degrade quickly when

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: Help Persisting a List

2011-04-11 Thread Heath Thomann
In addition to Mike's question, I'd like to know what version of OpenJPA you are using. I've seen this issue before and fixed it with JIRA OJ-1665. I did notice your BorderPoint class uses an '@GeneratedValue' so it appears you are using auto generated values as described in OJ-1665. This JIRA w

Re: Help Persisting a List

2011-04-06 Thread Michael Dick
I'm going to ask Risk's standard question, how are you doing enhancement? Can you narrow down the scope of the problem, e.g. does the problem happen on every insert, or is it something that only happens when the list is large? -mike On Tue, Apr 5, 2011 at 4:28 PM, Jason Ferguson wrote: > I hav

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