比如这一段
<unknown-pk>
<unknown-pk-class>java.lang.Integer</unknown-pk-class>
<column-name>attribute_key</column-name>
<jdbc-type>INTEGER</jdbc-type>
<sql-type>int</sql-type>
<auto-increment/>
</unknown-pk>
<entity-command name="mssql-fetch-key">
<attribute name="pk-sql">select @@IDENTITY</attribute>
</entity-command>
<unknown-pk></unknown-pk>这对标记可以自动增加标识标,在ejbCreate执行时自动执行
但<entity-command></entity-command>如何用java代码取得标识列就不清楚了,请高手指点一下