in many books I saw hibernate mapping xml having tag like
<id name="id" column="uid" type="long">
<generator class="native"/>
</id>
is "id" is a primary key? then what is generator class? how to represent multiple fields as primary key?
what if there is no primary key in a table?
is generator means this ID value is get generated automatically? What if I dont want to get ID generated automatically, I may assign value explicitly?
it is looking like hibernate is bit complex to understand?
<id name="id" column="uid" type="long">
<generator class="native"/>
</id>
is "id" is a primary key? then what is generator class? how to represent multiple fields as primary key?
what if there is no primary key in a table?
is generator means this ID value is get generated automatically? What if I dont want to get ID generated automatically, I may assign value explicitly?
it is looking like hibernate is bit complex to understand?