Using DefaultHibernatePropertySetDelegate com.opensymphony.module.property

View: New views
3 Messages — Rating Filter:   Alert me  

Using DefaultHibernatePropertySetDelegate com.opensymphony.module.property

by Shantanu Puranik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to use HiberenatePropertyset to store Objects.
but when i do  propertyset.setObject("test",obj); I get below error.

Is there a exampler /way where i can use JDBCPropertyset with Spring?

Help appreciated.

Thanks

-MJ



com.opensymphony.module.propertyset.PropertyException: type 8 not supported
        at com.opensymphony.module.propertyset.hibernate.HibernatePropertySet.setImpl(HibernatePropertySet.java:180)
        at com.opensymphony.module.propertyset.AbstractPropertySet.set(AbstractPropertySet.java:502)
        at com.opensymphony.module.propertyset.AbstractPropertySet.setObject(AbstractPropertySet.java:254)
        at com.shopping.feed2.flow.FlowManager.assignWorkflow(FlowManager.java:170)
        at com.shopping.feed2.flow.FlowManager.dispatchTasks(FlowManager.java:126)
        at com.shopping.feed2.flow.FlowManager.run(FlowManager.java:53)
        at com.shopping.feed2.flow.FlowManager.start(FlowManager.java:79)
        at com.shopping.feed2.infra.FlowManagerTest.test(FlowManagerTest.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=375771&messageID=462219#462219


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Using DefaultHibernatePropertySetDelegate com.opensymphony.module.property

by Shantanu Puranik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

u may use implements hibernatepropertydelegate to persisent property ~
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=375771&messageID=463004#463004


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Using DefaultHibernatePropertySetDelegate com.opensymphony.module.property

by Shantanu Puranik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HibernatePropertySet provider for Hibernate 2 does not support persisting type OBJECT, which is type 8. It also does not support persisting properties of types DATA, PROPERTIES, or XML. You could override the HibernatePropertySet to implement OBJECT if you can provide support for persisting the blob in your mapping file. Hibernate does support persisting BLOBs.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=375771&messageID=503355#503355


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price