Hello,
I have this problem when I try to update ScpnProject entity, this
entity has a property named hasProject of class Project. In my case I
change in Project the property hasComment o hasName and I have the
problem I described.
Here I include the code of these two classes (interfaces in fact).
// ScpnProject
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++
@Entity
@RdfsClass("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#ScpnProject")
public interface ScpnProject extends ScpnAdministration, SupportsRdfId
{
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasScpnUserPrivilege")
@OneToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE})
public List<? extends ScpnUserPrivilege> getHasScpnUserPrivilege();
public void setHasScpnUserPrivilege(List<? extends ScpnUserPrivilege>
theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasScpnCreator")
public ScpnUser getHasScpnCreator();
public void setHasScpnCreator(ScpnUser theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasScpnDir")
@OneToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE})
public List<? extends DirPath> getHasScpnDir();
public void setHasScpnDir(List<? extends DirPath> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasScpnAdmin")
public List<? extends ScpnUser> getHasScpnAdmin();
public void setHasScpnAdmin(List<? extends ScpnUser> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasProject")
@OneToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE})
public Project getHasProject();
public void setHasProject(Project theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasScpnLastActivityDate")
public Date getHasScpnLastActivityDate();
public void setHasScpnLastActivityDate(Date theValue);
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
// Project
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
@Entity
@RdfsClass("
http://scipion.cnb.csic.es/Ontologies/3DEM.owl#Project")
public interface Project extends Activity, SupportsRdfId {
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasComment")
public String getHasComment();
public void setHasComment(String theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasProcessingType")
public List<? extends EnumImageProcessingType> getHasProcessingType();
public void setHasProcessingType(List<? extends
EnumImageProcessingType> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasDocument")
public List<? extends Path> getHasDocument();
public void setHasDocument(List<? extends Path> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/3DEM.owl#hasName")
public String getHasName();
public void setHasName(String theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#isFundedByGrant")
public List<? extends Grant> getIsFundedByGrant();
public void setIsFundedByGrant(List<? extends Grant> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasBackgroundPublication")
public List<? extends Publication> getHasBackgroundPublication();
public void setHasBackgroundPublication(List<? extends Publication>
theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasPerson")
public List<? extends Person> getHasPerson();
public void setHasPerson(List<? extends Person> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasCreationDate")
public Date getHasCreationDate();
public void setHasCreationDate(Date theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasPublication")
public List<? extends Publication> getHasPublication();
public void setHasPublication(List<? extends Publication> theValue);
@RdfProperty("
http://scipion.cnb.csic.es/Ontologies/
3DEM.owl#hasLeader")
public List<? extends Person> getHasLeader();
public void setHasLeader(List<? extends Person> theValue);
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++
Thanks for your attention.