Use Clob types in AppFuse

xiaoxiao2021-03-06  78

Change applicationContext-hibernate.xml file <-! Hibernate SessionFactory -> < Ref bean = "datasource" /> model / role.hbm.xml ... model / policy / PolicyContent.hbm.xml < Prop key = "hibernate.diaforct"> net.sf.hibernate.diaalect.racle9diaalect true

<-! Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -> ...

<- policyTypeDAO:! Hibernate implementation ->

CLOB type of mapping database file to hbm.xml spring provided ClobStringType

Do not use net.sf.hibernate.type.textType type provided by Hibernate

The MODEL layer's Java file can be used to use this configuration using the String type, and the APPFUSE project is perfecting the CLOB type for Oracle cannot store limitations for more than 4,000 characters.

转载请注明原文地址:https://www.9cbs.com/read-93297.html

New Post(0)