Norbert,
There is no such standalone TableGenerator in JPA but some solution to this
has been recently posted here:
http://n2.nabble.com/Access-Oracle-Sequence-using-OpenJPA-tp2227943p2227943.html
Hope this helps.
Greetings,
Milosz
Hi,
for some reason I need a sequence generator, used
Hi,
Setting a batchLimit to -1 indicates there is no limit. Normally, this
would not be good since you could run into out of resources (memory,
connections, locks, etc) type situation. So, I wouldn't suggest running
with batchLimit set to -1 for any database. Setting it to 0 turns it off.
By
Personally, I would recommend the use of one of OpenJPA's id generators.
I've worked with our test organizations that wanted to develop their own id
generators and they continue to run into locking and synchronization
problems. If you can use the OpenJPA generators, then your application
doesn't
Adam's observations seem in synch with mine. Although I don't have personal
experience with storing localized data, I have exchanged e-mails with a few
people who have attempted it with the OpenJPA Entity Listeners. No
reference accounts per se, but it does seem doable.
Kevin
On Mon, Feb 2,
Hi,
I haven't been able to set a 'delete orphan' cascade yet.
OpenJPA supports delete-orphan semantics.
Annotate the relationship with @Dependent annotation. For further details,
please refer the doc [1]
[1]
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#dependent
--
View
Gianny -
I see in a later post that you figured out that your persistence.xml file
wasn't in your classpath, but I'm wondering how this problem was manifesting
itself? ie: What were the error messages that you were seeing? Also, what
JDK are you running on.
Thanks,
Rick
Gianny Damour wrote:
Simone Gianni on 01/02/09 22:11, wrote:
Hi all,
the problem of having a database containing localized data is quite
common, and a number of ways to do it are used here and there on the
internet.
What is, from your experience or from your knowledge of JPA, the best
way of doing it in JPA?
Hi,
for some reason I need a sequence generator, used to create unique keys
explicitly.
Is there any kind of standalone TableGenerator available in JPA ?
What I want to do is something like that:
TableGenerator genId = new TableGenerator (em, XX) ;
Long next = genId.getNext () ;
Thanks, Gianny,
We'll check that out as we continue improving this out of the box
enhancement process.
Kevin
On Fri, Jan 30, 2009 at 6:04 PM, gdamour gdam...@apache.org wrote:
Hi Kevin,
After debugging, I discovered that I need to have a
META-INF/persistence.xml
file on my classpath for
Hi Rick,
actually I use maven but I also run them all or partially in Eclipse, especially
when debugging, and especially when there is some fiendish hidden static
somewhere that carries over state from one test to the next, despite all the
precautionary set-up and tear-down code.
Rick
Hi. I am attempting to leverage the recursionDepth FetchAttribute on one of my
JPA entity classes, but OpenJPA does not seem to be honoring the value. Even
if I specify a recursionDepth of 50, a load of the object graph is only
returning a recursionDepth of 1. I am using a FetchGroup on the
John Leach wrote:
I must stop talking to myself. Yes it is a bug
https://issues.apache.org/jira/browse/OPENJPA-327 OPENJPA-327
The test case uses @PostUpdate, but the same thing seems to happen for
@PreUpdate. Sigh.
This old bug came out of the woodwork to bite me today, presumably
Hi Brain,
You have defined a FetchGroup named subEntities with arecursion depth
of 50 alright. But defining a fetch group does *not* activate it. The fetch
group which is active by default is called default and includes fields of
basic types only.
One way to activate subEntities fetch
13 matches
Mail list logo