Hi,
I'm having trouble setting the cache usage attribute in my mapping file. I have a read only entity that I'd like to cache to avoid unecessary trips to the db. But, entereing the cache usage line into the xml throws a parsing error. What am I doing wrong here? The line is copied out of the documentation.
Thanks,
Eric
Code:
<class name="em.Forum" table="EM_FORUM" mutable="false">
<cache usage="read-only" />
......
</class>
Error parsing XML: XML InputStream(127) The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))".
12:09:05,649 ERROR [TP-Processor3] LoggerStream.write(140) | net.sf.hibernate.LazyInitializationException: Hibernate lazy instantiation problem
Hibernate 2.0