This content has been marked as final.
Show 1 reply
-
1. Re: EJB3 @EmbeddableSuperclass
jajansen Jul 6, 2005 4:23 AM (in response to jajansen)Oops. The code fragement should be:
@EmbeddableSuperclass public class DomainObject implements Serializable { private Long id; @Id (generate = GeneratorType.AUTO) public Long getId() { return id; } public void setId(Long id) { this.id = id; } } @Entity public class User extends DomainObject { private String name; etc... }