From: Joe K. (JIRA) <no...@at...> - 2006-07-19 23:15:58
|
add mutable attribute to subclass and joined-subclass elements -------------------------------------------------------------- Key: HHH-1922 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1922 Project: Hibernate3 Type: New Feature Reporter: Joe Kelly Can you please add the "mutable" attribute to the "subclass" and "joined-subclass" elements? It is currently only supported for the "class" element. Sometimes I want some subclasses to be mutable and others to be immutable, in the same hierarchy. For example, this is what I would like to be able to do: ---------------------- <class name="AbstractAccount" table="account" discriminator-value="null"> <id name="entityId" column="account_id" unsaved-value="null"> <generator class="sequence"> <param name="sequence">account_seq</param> </generator> </id> <discriminator column="account_type" type="string"/> <property name="name" column="name"/> <subclass name="SystemDefinedAccount" discriminator-value="S" mutable="false"> </subclass> <subclass name="UserDefinedAccount" discriminator-value="U" mutable="true"> </subclass> </class> ---------------------- As you can see, SystemDefinedAccount is immutable whereas UserDefinedAccount is mutable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |