From: <one...@us...> - 2003-01-24 16:16:34
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/mapping In directory sc8-pr-cvs1:/tmp/cvs-serv13407/sf/hibernate/mapping Modified Files: Property.java Log Message: added mutable attribute to <property> element Index: Property.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/mapping/Property.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Property.java 19 Jan 2003 11:47:07 -0000 1.4 --- Property.java 24 Jan 2003 16:15:57 -0000 1.5 *************** *** 17,20 **** --- 17,21 ---- private final Value value; private String cascade; + private boolean mutable; public Type getType() { *************** *** 30,33 **** --- 31,38 ---- return name; } + public boolean isMutable() { + return mutable; + } + public boolean isComposite() { return value instanceof Component; *************** *** 41,44 **** --- 46,51 ---- Node cascadeNode = node.getAttributes().getNamedItem("cascade"); cascade = (cascadeNode==null) ? root.getDefaultCascade() : cascadeNode.getNodeValue(); + Node mutableNode = node.getAttributes().getNamedItem("mutable"); + mutable = (mutableNode==null) ? true : "true".equals( mutableNode.getNodeValue() ); } |