Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3
Mapping documents:Vehicle.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.ranlogic.prueba.Vehicle" table="vehiculos">
<id name="id" column="veh_id">
<generator class="native"/>
</id>
<property name="name" column="veh_marca"/>
<property name="price" column="veh_valor"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
It's there a way to obtain the id of an object if I have specified in the mapping document the id attribute (<id name="id" column="veh_id">)?
I mean, without using the getter of the class.