If I change the way to use primary key as Embeddable as following, it will work.

@Embeddable
public class LocaleMessagePK   implements java.io.Serializable
{
..
}


@Entity
public class LocaleMessage   implements java.io.Serializable{

  private LocaleMessagePK pk;
  @EmbeddedId
  public LocaleMessagePK getPk() {
    return pk;
  }

  public void setPk(LocaleMessagePK pk) {
    this.pk = pk;
  }

  @Transient
  public Integer getTableType() {
    return pk.getTableType();
  }
...
}


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

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


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to