JavaRanch » Java Forums »
Databases »
Object Relational Mapping
| Author |
Where i make mistake?
|
Mandar Khire
Ranch Hand
Joined: Sep 11, 2007
Posts: 483
|
|
Sorry for i am not following HowToAskQuestionsOnJavaRanch properly...but i hope then also i get answer...because by seeing my question there can be lots to learn...i think so...may be wrong...
I write program with the help of swing & ORM.
I use mysql for db & eclipse helios for write program.
I create table 'testing_ltp' in 'temp' database in mysql. 5 columns
1. panel_number 2. old_x 3.old_y 4.new_x 5.new_y
I create java project with the help of eclipse named 'mytest'.
In that i make 3 different directories each has .java file
mytest -->
1. important --> Testing.java,holdingPanel.java
2. manage --> manage.java
3. parameter --> Testing_ltp.java,Testing_ltp.hbm.xml
hibernate.cfg.xml
hibernate.reveng.xml
I add jars for support
1. JRE system library
resources.jar
rt.jar
jsse.jar
jce.jar
charsets.jar
dnsns.jar
localedata.jar
sunjce_provider.jar
sunmscapi.jar
sunpkcs11.jar
----------------------------
User Defined Library for hibernate
log4j-1.2.13.jar
antlr-2.7.6.jar
asm.jar
asm-attrs.jar
asterisk-java-1.0.0.M3.jar
cglib-2.1.3.jar
commons-collections-2.1.1.jar
commons-logging-1.1.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
ejb3-persistence.jar
ejb3unit-2.0.0-RC-1.jar
hibernate3.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-entitymanager.jar
hibernate-tools.jar
iText-5.0.3.jar
javassist.jar
jdbc2_0-stdext.jar
jta.jar
-----------------------------------------------
mysql-connector-java-5.0.4-bin.jar
All codes(for identify where i made mistake):-
1. holdingPanel.java
2 Testing.java
3. Testing_ltp.java
4. Testing_ltp.hbm.xml
5.hibernate.cfg.xml
6.hibernate.reveng.xml
When i run Testing.java i get exceptions which are followings, but program runs also even data also save...?
|
Millions saw the apple fall, but Newton asked why.
If you understand, say "understand". If you don't understand, say "don't understand". But if you understand and say "don't understand". How do I understand that you understand? Understand!
|
 |
 |
|
|
subject: Where i make mistake?
|
|
|
|