You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "srikrishnaprasad (JIRA)" <ji...@apache.org> on 2011/06/08 12:37:58 UTC
[jira] [Commented] (CAY-1572) PrimaryKey visibility in ObjEntity.
[ https://issues.apache.org/jira/browse/CAY-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045891#comment-13045891 ]
srikrishnaprasad commented on CAY-1572:
---------------------------------------
class name---- "EntityMergeSupport.java" method name-------protected List<DbAttribute> getAttributesToAdd(ObjEntity objEntity)
if (objEntity.getAttributeForDbAttribute(dba) != null) {
//issue 1572
if(objEntity.getAttributes().size()>0 && objEntity.getAttributeForDbAttribute(dba).isPrimaryKey()){
objEntity.removeAttribute(objEntity.getAttributeForDbAttribute(dba).getDbAttributeName());
}
else
continue;
}
> PrimaryKey visibility in ObjEntity.
> ------------------------------------
>
> Key: CAY-1572
> URL: https://issues.apache.org/jira/browse/CAY-1572
> Project: Cayenne
> Issue Type: Bug
> Components: Modeler
> Affects Versions: 3.0.1
> Reporter: Murali Krishna P
>
> 1.Create a DbEntity without checking the primarykey.
> 2.Create ObjEntity for the DbEntity and save.
> 3.Check the primarykey in the DbEntity and save.
> 4.sync the OdjEntity.
> 5.The primarykey is visible ,but should be invisible
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira