0
<id column="PERSONID" name="personId">
            <generator class="increment"/>
        </id>

What is this animal?
is it setting a primary key?

like wise

<set cascade="all-delete-orphan" inverse="true" lazy="true" name="trips" table="TRIP">
            <key column="PERSONID"/>
            <one-to-many class="travel.Trip"/>
        </set>

is this setting up like a file or list or something that uses like attributes?
taking the data from a column and associating it with a Trip
and it will not allow duplicates?
if so. is there more to know here?
-Steve
Thanks
-Steve

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by ceyesuma
0

yes
This is hibernate.
I believe(correct me if I am wrong)
the id section of code seems to be setting and incrementing a unique primary key
and likewise I believe the second section of code is creating a list that only takes travel.Trip objects and they can not be duplicated.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.