A single primary key
assigned the responsibility of the Java program generation (manual assignment)
generated automatically by the underlying database native character represented, if INCREMENT mysql is, if the oracle is Sequence, and so on.
This is mainly related with the two places:
hbm.xml (mainly local)
<id name="sid" type="int">
<column name="SID"/>
<!--主键的生成策略-->
<generator class="assigned"/>
</id>
cfg.xml
<! - automatic generation, Create will overwrite the original data, to be subsequently increased if required using the Update -> <Property name = "the hbm2ddl.auto"> Create </ Property>
basic type
Object Types
Component Properties
Single-table operation CURD