I'm testing some simple EJB 3.0 entity beans with Hibernate and I have them working apart from the fact that hibernate is creating new columns in my tables, rather than using the column names I have specified.
Here's a sample method:
@Column(name="date_reserved")
public Date getDateReserved()
{
return dateReserved;
}
Hibernate is creating a new column called "dateReserved" rather than using the existing "date_reserved" column. Basically, it seems to be ignoring the @Column annotation.
Is there a setting I have to enable to make Hibernate respect this annotation?
Thanks,
Andy.
|