-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: how can i config mi xml to not use a db
PostPosted: Thu Aug 03, 2006 4:48 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.