0
votes

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
Please include the Java code and the SQL you use. And please describe in more detail what "it doesn't make" means. - user1907906

1 Answers

1
votes

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.