| | |
mapping classes
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 239
Reputation:
Solved Threads: 0
Hibernate: select trips0_.PERSONID as PERSONID1_, trips0_.TRIPID as TRIPID1_, trips0_.TRIPID as TRIPID1_0_, trips0_.PERSONID as PERSONID1_0_, trips0_.DEPDATE as DEPDATE1_0_, trips0_.DEPCITY as DEPCITY1_0_, trips0_.DESTCITY as DESTCITY1_0_, trips0_.TRIPTYPEID as TRIPTYPEID1_0_ from TRIP trips0_ where trips0_.PERSONID=?
I got this output(above) when I did a System.out on a List.
Does this make sense to you. I am trying to take this program apart (HibernateTravelApp) to see how it works.
Right now I am trying to figure out how my session bean is is interacting with the JSF,the object classes and the mapping.hbm.xml along with the session bean.
I have deducted that the JSF end simply fills in the table with a row of data. One row of data is understandable. Somehow it is incrementing through the database with the above query. maybe because of the xml that has the code that reads:
Help with Code Tags
(Toggle Plain Text)
<id column="PERSONID" name="personId">
<generator class="increment"/>
</id>
also I have not confirmed how the above SELECT statement got formed. I am in the process of trying to understand how the session bean methods are gathering the items to fill the query but the query itself (SELECT etc structure) must be implicit in some class.
If you could shed some light on the specifics of hbm I would appreciate it.
-
thanks
-Steve
I got this output(above) when I did a System.out on a List.
Does this make sense to you. I am trying to take this program apart (HibernateTravelApp) to see how it works.
Right now I am trying to figure out how my session bean is is interacting with the JSF,the object classes and the mapping.hbm.xml along with the session bean.
I have deducted that the JSF end simply fills in the table with a row of data. One row of data is understandable. Somehow it is incrementing through the database with the above query. maybe because of the xml that has the code that reads:
Help with Code Tags
(Toggle Plain Text)
<id column="PERSONID" name="personId">
<generator class="increment"/>
</id>
also I have not confirmed how the above SELECT statement got formed. I am in the process of trying to understand how the session bean methods are gathering the items to fill the query but the query itself (SELECT etc structure) must be implicit in some class.
If you could shed some light on the specifics of hbm I would appreciate it.
-
thanks
-Steve
![]() |
Similar Threads
- OpenGL, SDL RGB mapping (Game Development)
- error: The value for the useBean class attribute is invalid (JSP)
- struts tutorials (Java)
- general query procedure (Java)
- query (Java)
- struts help.. (IT Professionals' Lounge)
- New Game Announcement (Game Development)
- About Implementing Scratch Disks (C++)
- vc++ mfc-i can't make getline work with a string for file input (C++)
Other Threads in the Java Forum
- Previous Thread: Sercurity Settings.
- Next Thread: Help with Exception...
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list loop map method methods mobile netbeans newbie nextline pong print problem producer program programming project projectideas read recursion recursive replaysolutions rim scanner screen sell server set size sms sort sql string swing terminal threads tree web websites windows





