Re: sequence

2012-03-12 Thread Mansour Al Akeel
ok, not much details. Let me add some. Everytime, I insert a record, I want the sequence number to increment by one. For example: count( entities with invoiceId) + 1 With constraints that the combination should be unique. My question is, does something like this exist or I have to implement a

Using the ReverseCustomizer and PropertiesReverseCustomizer...

2012-03-12 Thread Julien Martin
Hello, I am looking for a tool that would let me specify whether a given relationship is unidirectional or bidirectional and if it is bidirectional where the owning side is. Furthermore, I would like to be able to specify - where applicable - whether or not a separate java class is used for a

Defaulting ReverseMappingTool to use java.util.Collection instead of java.util.Set

2012-03-12 Thread Julien Martin
Hello, Is it possible to default the ReverseMappingTool to use java.util.Collection instead of java.util.Set? If so how? Regards, Julien.

Re: sequence

2012-03-12 Thread Rick Curtis
I suspect you'll need to write a custom generator. Thanks, Rick On Mon, Mar 12, 2012 at 8:26 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: ok, not much details. Let me add some. Everytime, I insert a record, I want the sequence number to increment by one. For example: count(

Re: Using the ReverseCustomizer and PropertiesReverseCustomizer...

2012-03-12 Thread Julien Martin
Hello, This is an attempt to reply to my own questions. See below: Le 12 mars 2012 15:22, Julien Martin bal...@gmail.com a écrit : Hello, I am looking for a tool that would let me specify whether a given relationship is unidirectional or bidirectional and if it is bidirectional where the

Customizing the way collections associations are named.

2012-03-12 Thread Julien Martin
Hello, Is it possible for openjpa to default the name of collection fields to messageCollection instead of messages for instance (if Message is the name of the other entity)? Regards, Julien.

Customizing whether or not a bidirectional relationship is used on a case by case basis

2012-03-12 Thread Julien Martin
Hello, Is it possible to customize on a case by case basis whether bidirectional relationships are used. Regards, Julien.