| | |
mapping classes
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 242
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...
Views: 409 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool keyword linux list loop map method methods mobile netbeans newbie number object oracle pong print problem producer program programming project projectideas read recursion reflection rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows





