This content has been marked as final.
Show 2 replies
-
1. Re: Howto use order by query on composite primary key fields
graysonpierce Jan 6, 2005 3:12 AM (in response to ekkelenkamp)Have you tried creating @Transient properties that point to your UserPK ID/NAME and then doing the order by based on the name you gave to the transient properties?
-
2. Re: Howto use order by query on composite primary key fields
ekkelenkamp Jan 6, 2005 6:00 AM (in response to ekkelenkamp)Hi,
I already tried you suggested solution and unfortunately it didn't work.
In my UserEJB the fields are defined as follows:
/**
* Returns the value of the name property.
*
*/
@javax.ejb.Transient public java.lang.String getName() {
if (primaryKey == null) {
return null;
}
return primaryKey.getName();
}
/**
* Sets the value of the name property.
*
* @param name the value for the name property
*/
@javax.ejb.Transient public void setName(java.lang.String name) {
if (primaryKey == null) {
primaryKey = new com.finalist.entity.tuser.UserPK();
}
primaryKey.setName(name);
}