java - nullSafeGet in Hibernate 4 -


I'm upgrading to Hibernate 3 HubNet 4.1.

 java.lang.AbstractMethodError on  org.hibernate.type.CustomType.nullSafeGet (CustomType.java:124): when running the application, an exception under found on org.hibernate.persister.entity.AbstractEntityPersister.hydrate (Abstret Antiteepirsistrkjawa 2701) on org.hibernate.loader.Loader.loadFromResultSet (Loader.java.1541) on Org.hibernate. loader.Loader.instanceNotYetLoaded to hydrate (Aberttaipkxavaoti 6) org.hibernate.loader.Loader.getRow (Loader.java:1373) on org.hibernate.loader.Loader.getRowFromResultSet (Loader.java:640) on org.hibernate (Loader.java1473) Org.hibernate.loader.Loader.doOld on the phone. Start org on Loader.doQuery (Loader.java:850) org.hibernate.loader.Loader.doQuery and InitializeNonLazyCollections (Loader.java:289). On Orb.hibernate.loader.entity on hibernate.loader.Loader.loader.loader.loadEntity (Loderkjawa 2042) org.hibernate.loader.entity.AbstractEntityLoader.load (AbstractEntityLoader.java:82). Org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource (DefaultLoadEventListener.java:439) at ORG at AbstractEntityLoader.load (AbstractEntityLoader.java:72) org.hibernate.persister.entity.AbstractEntityPersister.load (AbstractEntityPersister.java:3710) . . Hibernate.event.internal.DefaultLoadEventListener.doLoad (DefaultLoadEventListener.java:420) at org.hibernate.event.internal. DefaultLoadEventListener.load (DefaultLoadEventListener.java:204) org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener) Java: 251) org.hibernate.event.internal.DefaultLoadEventListener.onLoad (DefaultLoadEventListener.java:148) org At .hibernate.internal.SessionImpl.fireLoad (SessionImpl.java:992) at org.hibernate.internal.SessionImpl. Internal load (session Impl.java on org.hibernate.type.EntityType.resolveIdentifier (EntityType.java:610) on org.hibernate.type.EntityType.resolve (EntityType.java:438) on Org.hibernate.engine.internal: 919) .TwoPhaseLoad.initializeEnti Ty on org.hibernate.loader.Loader.initializeEntitiesAndCollections (TwoPhaseLoad.java:150) (Loader.java:995) org.hibernate.loader.Loader.doQuery on org.hibernate.loader.Loader (Loader .java: 874) org.hibernate.loader at org.hibernate.loader.Loader.listUsingQueryCache (Loader.javamore292) and load on Odorra. Loader.list org.hibernate.loader.hql.QueryLoader.list (QueryLoader.java:470) on org.hibernate.hql.internal.ast.QueryTranslatorImpl.list (Loader.java:2255) (QueryTranslatorImpl.java:355) org.hibernate.engine.query.spi.HQLQueryPlan.performList (HQLQueryPlan.java:196) org.hibernate.internal.SessionImpl.list (SessionImpl.java:1161) on org.hibernate.internal.QueryImpl.list (on QueryImpl .java: 101) at my.com. MyDAOImpl.findDocuments (MyDaoImpl.java.2) ......   

I think that hibernate in 4 nullSafeGet () and Nlsafset ( ) . That's why I have to use these methods to use new parameters, and anyway, in the customized inequality, the session supplement must be ignored.

findDocuments () Basically query documents from the document table, Document.hmb.xml is not a custom type in any area of ​​my Why the puzzle is called CustomType.nullSafeGet () ? In the document. H.B.M.L.L. In, only one is suspicious, but I'm not sure that the same error gets after changing the type of type to "blob".

  & lt; Property name = "image" column = "picture" type = "org.springframework.orm.hibernate3.support.BlobByteArrayType" />   

Can you please help?

Resolve my question by changing " org.springframework.orm.hibernate3.support.BlobByteArrayType Is done from " materialized_blob .

  & lt; Property name = "picture" column = "picture" type = "physical content" />   

it seems that the Spring Formation call Hibernate 3 customType.Java is Hibernate fights with customType.Java . One lesson learned, when Hibernate 3 to 4 is upgraded, the Blob column is required to be used as the " physical / bob " type, which is a simpler solution than Hibernate 3 , Spring LowBandler within the session

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -