Hello
I created a project with the following roo command:
this generates a sequence called "hibernate_sequence"Code:persistence setup --provider HIBERNATE --database POSTGRES --databaseName db --userName name --password pass entity --class ~.domain.Person --testAutomatically field string --fieldName firstName --notNull field string --fieldName lastName --notNull field date --fieldName birthDate --notNull --type java.util.Date
Then I modified:
to Person.javaCode:. . . @RooJavaBean @RooToString @RooEntity @Entity @SequenceGenerator(name = "person_seq", sequenceName = "person_seq_id", allocationSize = 1, initialValue = 1) public class Person {
to Person_Roo_Entity.ajCode:. . @Id @GeneratedValue(generator = "person_seq") @Column(name = "id") private Long Person.id; . .
But The sequence is still asociated to "hibernate_sequence"
How I can generate one sequence for each table
thanks


Reply With Quote
