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
Creation of RAID device fails
How do I read/set Application.GetOption("New
database sort order") from ASP
Reverse DNS Centos 5, Bind. shared hosting
Win RAR
Is it possible to automatically copy data from AS/400 to Excel (or Lotus 1-2-3) without external apps?
Server 2003 Shutdown without Login
Setting up VPN tunnel on a Fortinet 50a
BackupExec Problems Creating BackupToDisk folder on Buffalo Terastation Pro
Word Press Hosting Question
AutoCAD 2011 install cannot find pit.config and fails