I currently have this problem that I don't have before I switched to eclipse-jee-kepler. What I have:
I have 2 classes, base and extensible class:
public abstract class BaseEntity implements Serializable { @Id @GeneratedValue(generator = "ID_GENERATOR") @Column(name = "ID") private Long id; } @Entity @Table(name = "CUSTOMER") @SequenceGenerator(name = "ID_GENERATOR", sequenceName = "CUSTOMER_SEQ") public class Customer extends BaseEntity { }
Before I don't have this validation error, but now eclipse throws it. I can compile, build and deploy successfully, but the error marker makes it difficult to pinpoint compilation errors when you really have one.
The error seems obvious because I have ID_GENERATOR on all expandable classes. My question is: 1.) Can I ignore this error? 2.) Any work around? Perhaps a different approach is used.
source share