imeikle wrote:
However I have a few questions.
1) Creating two sets of mapping files means I have LOTS of mapping files to maintain. Also using two sets also means that the start up time of Hibernate is almost doubled. Is it possible to just use just one set ?
2) Is this a "good" use og hibernate ? Am I just forcing hibernate to do something it really does not want to do ?
3) Is there a better way of creating a read only session ?
i just try answering your first questions based on my kowleage of hibernate.
hope a bit help for you .:)
1)you can use just one set of mapping files.likes below:
<class name="cim.core.Naming" table="NAMING" >
<id>...........</id>
<property >......</property>
<class>
<class name="cim.core.BaseVoltage" dynamic-update="true" table="BASEVOLTAGE">
<id>...........</id>
<property >......</property>
</class>