Joined: Wed Jul 23, 2008 2:50 am Posts: 16
|
Hi!
is it possible to dont use any id-generating in my hbn.xml file.
I have two column that none of them is id, and i don't need to have a colum with auto-increment.
How can i write my hbn.xml
for example if i have a timestamp and status coulmns on my table.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Statstic" table="statitic">
<property name="timestamp"/>
<property name="status"/>
</class>
</hibernate-mapping>
How should this file look like?
thanks in advanced
|
|