JPA映射文件jpa.reveng.xml的配置问题
JAP映射oracle 表时,因为字段类型是number, 所以生成的对象是BigDECIMAL,如果想类型是:java.util.Long 的话就必须修改配置文件如下:
<sql-type jdbc-type="DECIMAL" hibernate-type="java.lang.Long"></sql-type>
?
下面是oracle的JDBC-type与数据库字段类型之间的关系。
?
ARRAYBLOBWill be read back as BLOBBIGINTNUMBER(38)?BINARYRAWOracle requires the specification of the size for ARRAYBLOBWill be read back as BLOBBIGINTNUMBER(38)?BINARYRAWOracle requires the specification of the size for ARRAYBLOBWill be read back as BLOBBIGINTNUMBER(38)?BINARYRAWOracle requires the specification of the size for , thanks very much