0

I have added sequence and trigger in my oracle database, then I created entity classes from database, but it doesn't make @sequencegenerator in entity class. I used netbeans with glassfish server and eclipselink jpa provider. would you please help me to solve the problem?

1
  • 1
    Please include the Java code and the SQL you use. And please describe in more detail what "it doesn't make" means. Commented May 27, 2013 at 8:13

1 Answer 1

1

You need to configure the @SequenceGenerator in the generated code, it has no idea you want to use the sequence for the table. In general the generated code is a quick start, you are suppose the customize it to your needs.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.