michael wrote:
use type="string" sql-type="whatever"
does not work either. I have the following changes:
/**
* @return Returns the strLastName.
*
* @hibernate.property
* type="string"
*
* @hibernate.column
* name="LASTNAME"
* sql-type="char"
* length="32"
* not-null="true"
*/
public String getStrLastName() {
return strLastName;
}
generated mapping:
<property
name="strLastName"
type="string"
update="true"
insert="true"
access="property"
>
<column
name="LASTNAME"
length="32"
not-null="true"
sql-type="char"
/>
</property>
generated sql:
create table PERSON (
PERSON_ID bigint generated by default as identity (start with 1),
...
LASTNAME char not null
...
);
now there is no specified column length at all. any help appreciated.
sven