Re: Issues with GeneratedValue and SequenceGenerator

2011-04-12 Thread realdepp
I forgot to add it here - I opened a bug report: https://issues.apache.org/jira/browse/OPENJPA-1977 -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6265927.html Sent from the OpenJPA Users mailing list archive at

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-12 Thread Jeremy Bauer
I agree. The OpenJPA documentation is confusing/contradictory. 1.2. Final Entity classes may not be final. No method of an entity class can be final. *Note* OpenJPA supports final classes and final methods. I wonder if the distinction is "Entity" vs. a plain old class? Either way, I think t

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-11 Thread Rick Curtis
1.2. Final Entity classes may not be final. No method of an entity class can be final. Note OpenJPA supports final classes and final methods. Confusing? Perhaps. It seems pretty clear that we don't support final Entities or final Entity methods. I'm not sure what the "Note" is referring to thoug

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-11 Thread realdepp
openjpa.apache.org/builds/2.1.0/apache-openjpa-2.1.0/docs/manual/jpa_overview_pc.html#jpa_overview_pc_final So this is either an implementation bug or a documentation bug. -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-07 Thread realdepp
I think I got it: When I mark the getter and the setter for the id as "final", the error occurs. Without final it works fine. -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6249036.html Sent from the Ope

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread Michael Dick
n context: > http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247366.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread realdepp
Yes, MyBase is in persistence.xml. -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247366.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread realdepp
ssues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247365.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread Michael Dick
abble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247210.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread realdepp
MySQL version is 4.1.22 Connector version is 5.1.8, JDBC version is documented as 4.0 -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247210.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread Jeremy Bauer
itialValue AND allocationSize are ignored. > The IDs start with 1 and they get increased by 50 (default value?) with > every new persisted entity. > (And, of course, I don't see any way to get the ids into the application) > > > Is that probably related to MySQL? > > &g

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread realdepp
I don't see any way to get the ids into the application) Is that probably related to MySQL? -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6246413.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread Michael Dick
Rick's right, my memory was faulty. I think in the earlier versions of OpenJPA a refresh was required, but when I ran with a 2.1.1 snapshot this morning I didn't have to call refresh. Thanks for keeping me honest Rick.. -mike On Wed, Apr 6, 2011 at 9:45 AM, Rick Curtis wrote: > I'm guessing th

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-06 Thread Rick Curtis
I'm guessing that this might have to do with your enhancement method? If you are using the eclipse plugin... that is most likely the problem. See OPENJPA-1879[1] for details. [1] https://issues.apache.org/jira/browse/OPENJPA-1879 Thanks, Rick On Tue, Apr 5, 2011 at 5:36 PM, realdepp wrote: > H

Re: Issues with GeneratedValue and SequenceGenerator

2011-04-05 Thread Michael Dick
ENCE, generator = > "My_Seq") > > The same error as above, but additionally, the "initialValue" is ignored, > the ID in the db starts with "1". > Did I trigger a bug or did I make a mistake? > > > Thanks a lot. > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6244055.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >

Issues with GeneratedValue and SequenceGenerator

2011-04-05 Thread realdepp
trigger a bug or did I make a mistake? Thanks a lot. -- View this message in context: http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6244055.html Sent from the OpenJPA Users mailing list archive at Nabble.com.