Hello….Hibernate newbie here. We have many tables in our Oracle database whose primary key is a number that has a corresponding sequence generator. For example, a table called MY_TABLE has a sequence called MY_TABLE_SEQ. How do I use the Hibernate reverse engineering in MyEclipse to correctly generate this? I don’t see anywhere in the wizard to enter the sequence name. Right now I’m hand-coding the sequences, but I have to do this every time I reverse engineer. Here’s what I need the annotations to look like (at least this seems to work):
@SequenceGenerator(name = "MY_TABLE_SEQ", sequenceName = "MY_TABLE_SEQ")
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator = "MY_TABLE_SEQ")
@Column(name = "SEQID", unique = true, nullable = false, precision = 15, scale = 0)
Thank you,
Justin