Hi,
i'm going to implement a internationalized data in Hibernate as describe on
http://blog.hibernate.org/1592.lace by Gavin King.
No problem for implementation, but I got problem on second level cache when an internationalized object is cached.
Here is an example:
Code:
<class name="TipoProdottoImpl" proxy="TipoProdotto" table="tipo_prodotto">
<cache usage="read-only"/>
<id name="id" type="long" column="id">
<generator class="sequence">
<param name="sequence">HIB_OBJ_SEQUENCE</param>
</generator>
</id>
<property name="codice" column="codice" type="string" />
<property name="descrizione" column="descrizione" type="LabelUserType" />
</class>
Now when i retrieve the first time tipo_prodotto it's cached by Hibernate in a second level cache ehcache with the first user language.
When i get it the second time with another language i get the first element with the first language.
What can i do? any solution?
I need secon level cache....
thank's
Claudio