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 Get Rsync to Include Subdirectories?
can ping by ip, and by name, but not browse
how can i get the location of some body by his mobile number or computer IP?
File Size vs String Size
Listing of Excel VBA Modules and Sub and Function Procedures in a workbook
#550 5.3.4 SMTPSEND.OverAdvertisedSiz
e; message size exceeds fixed maximum size ##
Finding all email sent from a certain domain to our Exchange Server for legal purposes
Library module to process RAW camera files?
How to configure the email check interval in Lotus Domino 8
Blackberry Printing