Joined: Wed Aug 02, 2006 4:19 pm Posts: 2 Location: Chile
|
Thanks to respond post previous. But not yet profit to persist the class.
//this is the example
<hibernate-mapping>
<class entity-name="events.Event" table="EVENTS" node="events">
<id name="id" column="uid" node="@id" type="long"/>
<property name="date" column="EVENT_DATE" node="@date" type="timestamp"/>
<property name="title" column="EVENT_TITLE" node="@title" type="text"/>
</class>
</hibernate-mapping>
//this is the class
public class Event {
private Long id;
private String title;
private Date date;
//....etc
}
//this is my problem
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:hsql://localhost</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
because i can't find the parameters to tell hibernate use a xml file to map, don't use a database, I have looked 2 days but nonencounter the configuration. can someone post it plese (I 'm using hibernate 3.0)
thanks
_________________ Thanks
|
|