Hi,
i've tried to map a table by dyamic mapping as
Code:
<hibernate-mapping>
<class entity-name="Customer">
<id name="id"
type="long"
column="ID">
<generator class="sequence"/>
</id>
<property name="name"
column="NAME"
type="string"/>
<property name="address"
column="ADDRESS"
type="string"/>
</class>
</hibernate-mapping>
Than i've tried to insert or update a record as:
Code:
// Create a customer
Map david = new HashMap();
david.put("name", "David");
david.put("address", "via pippo,pluto");
s.save("Customer", david);
Into the address property i've put a comma "," but when session has commited an exception has been raise:
this exception was something like bind exception where ClassCastExpetion beetween java.list.Array and java.lang.String.
But if i set address without any comma everything work correct.
Any idea or solution?