jholtzman
Aug 31st, 2004, 07:05 PM
I am trying to use the new BlobByteArrayType in my hibernate mappings, but I haven't had any luck finding any documentation or examples. I've set up the hibernate mapping like so:
<property name="chart" type="blob" class="org.springframework.orm.hibernate.support.BlobByte ArrayType"/>
I'm also using the hbm2java ant task to generate my java classes from the hibernate mappings. However, when I run hbm2java, spring complains that there is "No LobHandler found for configuration". I have configured my local session factory like so:
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFact oryBean">
<property name="dataSource"><ref local="dataSource"/></property>
<property name="lobHandler"><value>${blob.handler}</value></property>
...
(where blob handler is replaces with org.springframework.jdbc.support.lob.DefaultLobHan dler)
I am assuning that this error is thrown because spring is not running when the hbm2java task is run. I'm puzzled, though, because it shouldn't need to be running when simply generating the java source files.
Does anyone have any idea why BlobByteArrayType would complain about a missing lobHandler when it's not even being asked to do its IOC magic?
<property name="chart" type="blob" class="org.springframework.orm.hibernate.support.BlobByte ArrayType"/>
I'm also using the hbm2java ant task to generate my java classes from the hibernate mappings. However, when I run hbm2java, spring complains that there is "No LobHandler found for configuration". I have configured my local session factory like so:
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFact oryBean">
<property name="dataSource"><ref local="dataSource"/></property>
<property name="lobHandler"><value>${blob.handler}</value></property>
...
(where blob handler is replaces with org.springframework.jdbc.support.lob.DefaultLobHan dler)
I am assuning that this error is thrown because spring is not running when the hbm2java task is run. I'm puzzled, though, because it shouldn't need to be running when simply generating the java source files.
Does anyone have any idea why BlobByteArrayType would complain about a missing lobHandler when it's not even being asked to do its IOC magic?