I have understood the mapping.
What I would know is : who will manage "insert"/"update" tags of
key-property ?

2010/3/24 Simon Duduica <[email protected]>

> Fabio, this is also what I saw in the Hibernate DTD, on the other hand
> Hibernate does not complain about the newly added attributes. I use a java
> project for comparison (Hibernate + Envers + Spring), that has the same unit
> tests as the .NET project and the Java Hibernate mapping generated is the
> following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <hibernate-mapping auto-import="false">
>     <class entity-name="ro.siveco.apdrp.envers.model.Person_AUD"
> table="Person_AUD">
>         <composite-id name="originalId">
>             <key-property name="id" insert="true" update="false"
> type="long">
>
>                 <column name="id" length="255" scale="2" precision="19"/>
>             </key-property>
>             <key-many-to-one type="integer"
> class="org.hibernate.envers.DefaultRevisionEntity" name="REV">
>
>                 <column name="REV"/>
>             </key-many-to-one>
>         </composite-id>
>         <property name="REVTYPE" insert="true" update="false"
> type="org.hibernate.envers.entities.RevisionTypeType"/>
>         <property name="firstName" insert="true" update="false"
> type="string"><column name="firstName" length="255" scale="2"
> precision="19"/></property><property name="lastName" insert="true"
> update="false" type="string">
>             <column name="lastName" length="255" scale="2" precision="19"/>
>         </property>
>     </class>
> </hibernate-mapping>
>
> The name of the entity that I gave as example is different as I have more
> entities in the java project but the case is the same.
> I will try to post also the java project if you think it's of any help.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "NHibernate Contrib - Development Group" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhcdevs%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhcdevs?hl=en.
>



-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhcdevs?hl=en.

Reply via email to