Greetings
I am using a "third party library" (Informa) a that is consequently using hibernate. There is a trouble saving attribute which has a java.net.URL type.
When Hibernate saves it to DB, it just leaves a blank string '' there (even if there are valid data in the object) and when loading this garbage it,logically, fails to deserialize the URL. My question is...what are we doing bad? What is the correct mapping of java.net.URL type in MySQL environments?
thanks for your time
Jakub Hozak
the mapping details follows:
Mapping documents:
Code:
<property name="site" type="java.net.URL" update="true" insert="true" column="SITE" not-null="false" unique="false" />
Name and version of the database you are using:MySQL 4.1.11
column creating code: Code:
SITE VARCHAR(255) BINARY