openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phill <ph...@bicispace.com>
Subject Re: OneToMany cascading persist and sequence ID generator
Date Wed, 02 Mar 2011 17:08:08 GMT
Yes it also uses a sequence generator.

SurveyAnswer.java 

@SequenceGenerator(name = "Survey_Result_Id_Gen", sequenceName = "survey_result_seq", allocationSize
= 10)

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "Survey_Result_Id_Gen")
@Column(name = "result_id")
protected long id;


On 02/mar/2011, at 17.24, Jeremy Bauer wrote:

> Thanks, Phill.  Sorry, I forgot to ask - does SurveyAnswer also use the same
> id generation strategy as Lead?  In the meantime, I'll begin trying to
> reproduce the failure you are seeing.
> 
> -Jeremy
> 
> On Wed, Mar 2, 2011 at 9:26 AM, Phill <phill@bicispace.com> wrote:
> 
>> OpenJPA 2.1.0 and PostgreSQL 9
>> I have separate DDL.
>> Phill
>> 
>> 
>> On 02/mar/2011, at 16.22, Jeremy Bauer wrote:
>> 
>>> Hi Phill,
>>> 
>>> What database and version of OpenJPA are you using?  Also, does OpenJPA
>>> generate the tables or do you have separate DDL?
>>> 
>>> -Jeremy

Mime
View raw message