2 Replies Latest reply on Jul 1, 2009 3:30 AM by stockinstore

    EntityHome update no saved

      Modify the mcType or mcClass of instance  of module , call moduleHome update(), but the database no changed,also the log not print update SQL.
      Before call update(),I print the value of mcType and mcClass , the value is modified value.

      If modify the mName or mDesc ,call update(), all will be right ,database changed and log print update SQL.
      If modify both moduleClass and mName(mDesc), call update ,all will be right too.
      The moduleClass had @EmbeddedId.
      If moduleClass id is not a @EmbeddedId, meaning the key of ModuleClass not a composite PK ,the PK is mcClass,
      then modify the mcClass of instance of module, call moduleHome update(),database will be changed and pring update SQL in log.
      It is seam bug?
      public class ModuleHome extends EntityHome<Module>{

      public class Module implements Serializable{
          private String mId;
          private String mName;
          private String mDesc;
          private ModuleClass moduleClass;
          public Module() {
          public String getMId() {
              return mId;
          public void setMId(String mId) {
              this.mId = mId;
          public String getMName() {
              return mName;
          public void setMName(String mName) {
              this.mName = mName;
          public String getMDesc() {
              return mDesc;
          public void setMDesc(String mDesc) {
              this.mDesc = mDesc;
          public ModuleClass getModuleClass() {
              return moduleClass;
          public void setModuleClass(ModuleClass moduleClass) {
              this.moduleClass = moduleClass;

      public class ModuleClass implements Serializable{
          private ModuleClassPK mcPK;
          private String mcName;
          public ModuleClass() {
          public ModuleClassPK getMcPK() {
              return mcPK;
          public void setMcPK(ModuleClassPK mcPK) {
              this.mcPK = mcPK;
          public String getMcName() {
              return mcName;
          public void setMcName(String mcName) {
              this.mcName = mcName;

      public class ModuleClassPK implements Serializable {
          private String mcType;
          private String mcClass;
          public ModuleClassPK() {
          public String getMcType() {
              return mcType;
          public void setMcType(String mcType) {
              this.mcType = mcType;
          public String getMcClass() {
             return mcClass;
          public void setMcClass(String mcClass) {
              this.mcClass = mcClass;