Microsoft
Software
Hardware
Network
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
(638 bytes)
(File Type Details)
Car.java
Car.hbm.xml
(689 bytes)
(File Type Details)
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.icef
aces.org/t
utorial/hi
bernate-
tu
torial.htm
l
http://www.roseindia.net/h
ibernate/i
ndex.shtml
http://www.laliluna.de/dow
nload/firs
t-hibernat
e-example-
tutorial-e
n.pdf
for reference on hibernate
http://docs.jboss.org/hibe
rnate/core
/3.3/refer
ence/en/ht
ml/
mapping
.html
Random Solutions
Cannot access LAN on Cisco Valet M10 wireless router
Cast Question for Crystal Reports
Find database name in Visual Fox Pro database
301 redirect htaccess issue
Old address/mapping cached in Outlook clients
Do I have to be on domain to FTP?
Office Word 2007
Outlook not attack shortcut (lnk) attach directly the file
Show all records when variable is null
How do I get back into my user profile?