Hi,

is there a chance to override the defined generator for the @Id?
For example if I´d like to define the @Id in a superclass and 
only change the value of the db-sequence to use?

For example something like this:


  | @MappedSuperclass
  | public class BaseEntity  {
  |     
  |     @Id
  |     @GeneratedValue(generator="idGenerator")
  |     @SequenceGenerator(name = "idGenerator", sequenceName 
="base_entity_id_seq")
  |     protected long id;
  | 
  | ......
  | }
  | 
  | @SequenceGenerator(name = "idGenerator", sequenceName = another_id_seq")
  | public class AnEntity extends BaseEntity {
  | 
  | }

Any input is greatly appriciated

Thomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162499#4162499

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162499

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to