Question : Hibernate mapping files

I have a database table as
CREATE TABLE `distili`.`car` (
`id` bigint(20),
`make` varchar(255),
`model` varchar(255),
`year` int
);
What files need to be created when adding hibernate mapping to this project. Provide a sample of what is included in each file.
I have Car.java and Car.hbm.xml files created, see attached files. are the enough? Please take my files if they are proper.
Thanks!
Attachments:
 
Car.java
 
 
Car.hbm.xml
 

Answer : Hibernate mapping files

some basic things are missing from your mapping file, like the 'type' attribute for properties. Also you need a hibernate properties file.

check this link for simple examples
http://facestutorials.icefaces.org/tutorial/hibernate-tutorial.html
http://www.roseindia.net/hibernate/index.shtml
http://www.laliluna.de/download/first-hibernate-example-tutorial-en.pdf

for reference on hibernate
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/mapping.html
Random Solutions  
 
programming4us programming4us