I don't know if this will be much of a help. I'm struggling with getting a handle on annotations myself. But instead of @Entity on your base class, I think you should try @EmbeddableSuperclass
We also use a common base class for all our persistent classes, and it is annotated like this
Code:
@EmbeddableSuperclass(access = AccessType.FIELD)
public abstract class PersistentObject implements Serializable
{
@Id(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name = "oid", length=32)
private String oid;
...
}
@Entity(access = AccessType.FIELD)
@Table(name = "rio_query")
public class Interrogation extends PersistentObject
{
...
}
I think this might be like what you're trying to accomplish.
regards,
Dave