Hello, I have my class mapping
<class name="Event" table="EVENTS" mutable="false"> <id name="id" column="EVENT_ID"> <generator class="increment"/> </id> <property name="date" type="timestamp" column="EVENT_DATE"/> <property name="title"/> <join table="events_extensions" inverse="true" > <key column = "Event_id" /> <property name="title2" column="title" insert="false" update="false"/> </join> </class>
in hibernate.cfg i have
<property name="hbm2ddl.auto">create</property>
I wish that I would create automatically the table events_extensions because it is actually a view that I create in the database-object, how can I do?
Thanks
Sergio
|