Joined: Wed Jul 22, 2009 5:29 am Posts: 1
|
Hi at all,
I'm a newbie on this community I would like to thank everyone u'll read the post. I have the following problem: org.hibernate.exception.GenericJDBCException: could not retrieve GUID
The application should write on an oracle database. The table descriptor is the following:
<hibernate-mapping> <class name="com.csc.sics.model.ServerError" table="SERVER_ERROR"> <id name="objectId" type="string"> <column name="OBJECT_ID" length="36" /> <generator class="org.hibernate.id.GUIDGenerator" /> </id> <property name="message" type="string"> <column name="MESSAGE" /> </property> <property name="messageType" type="string"> <column name="MESSAGE_TYPE" length="100"/> </property> <property name="errorText" type="string"> <column name="ERROR"/> </property> <property name="errorMessage" type="string"> <column name="ERROR_MESSAGE"/> </property> <property name="errorType" type="string"> <column name="ERROR_TYPE" length="100" /> </property> <property name="succeeded" type="int"> <column name="SUCCEEDED" /> </property> <property name="errorDate" type="timestamp"> <column name="ERRORDATE" /> </property> </class> </hibernate-mapping>
It automatically should get the ObjectId from the database function (sys_guid()) and then use it. But without any reason sometimes it generates the error. Anyone have already got a similar error? Anyone found a solution?
Regards.
Daniel
|
|