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
folder redirection not updating to new server via GP
Writing DLL in Delphi 7
Trouble installing Panasonic Printer/Copier devices on SBS 2008
override err.raise?
SBS 2003 CAL Licenses
How to check Public Folder replication
connectComputer/nshelp.exe
page cannot be found
asp.net I have a gridview that is updatedable. what I would like to do is pass its -> ID value to another page that would allow the user to update picture images for that user ID.
Problems with lotus pop3
NETGEAR FVS336G