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
How can i sort two dimentional array with linq and with Compareto method?
Settings up vsftpd and ssl?
Spam black list removal " dnsbl.burnt-tech.com"
can you run 2 versions of MS office
Setting up Entourage 08 with Exchange 2007
iPhone Contacts - ActiveSync
SPContext.Current is returning null in the "SPItemEventReceiver" event handler.
helpdesk interview for bank
Ex2010 - Move Mailbox Failed - Corrupt Messages
Outlook 2007 - Auto Create Distribution List