943,816 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 523
  • Java RSS
Aug 28th, 2008
-1

mapping classes

Expand Post »
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
Similar Threads
Reputation Points: 7
Solved Threads: 2
Posting Pro
ceyesuma is offline Offline
524 posts
since Aug 2007
Aug 29th, 2008
0

Re: mapping classes

it seem the code above is designating a primary key to use when the session bean loads classes and hibernate build the query and runs it and the JSF excepts it.
Reputation Points: 7
Solved Threads: 2
Posting Pro
ceyesuma is offline Offline
524 posts
since Aug 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Demo projects
Next Thread in Java Forum Timeline: Help with Exception...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC