openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wilesun (JIRA)" <>
Subject [jira] Created: (OPENJPA-689) @ID define in super class
Date Sat, 09 Aug 2008 11:46:44 GMT
@ID define in super class

                 Key: OPENJPA-689
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.1.0
            Reporter: wilesun
             Fix For: 1.1.1

our entities have share super class,the class has one field define the entity id,so we define
the class as mappedsuperclass
when we work with hibernate JPA,it work fine.
but migrate to openjpa,the PCEnhancer don't assign other entity has ID class,so the query
sql is incorrect.
public EntityBase {
    private String id;

public B extends EntityBase {


public C extends EntityBase {


Object o = em.find(B.class, "111");
the sql list:
select * from A where id=?
select * from B where id=?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message