I have:

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
class A {
 int id;
int x;
}

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
class B extends A {
}

@Entity
class C {
    @OneToMany (cascade = {CascadeType.ALL}, fetch = FetchType.LAZY, 
                              mappedBy = "c")
    @OrderBy("x")
    public Collection getBs() {
        return bs;
    }
}

THE orderBy it crashes : message the table B does not contain x column.

any solutions to orderBy using an inherited field ?

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to