openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <>
Subject [jira] Created: (OPENJPA-139) PersistenceException merging an entity with a Calendar field.
Date Fri, 09 Feb 2007 00:20:05 GMT
PersistenceException merging an entity with a Calendar field. 

                 Key: OPENJPA-139
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
            Reporter: Michael Dick

I get the following exception when I try to merge an entity which contains a java.util.Calendar

<0|true|0.0.0> org.apache.openjpa.persistence.PersistenceException:
	at org.apache.openjpa.kernel.AttachStrategy.attachField(
	at org.apache.openjpa.kernel.VersionAttachStrategy.attach(
	at org.apache.openjpa.kernel.AttachManager.attach(
	at org.apache.openjpa.kernel.AttachManager.attach(
	at org.apache.openjpa.kernel.BrokerImpl.attach(
	at org.apache.openjpa.kernel.DelegatingBroker.attach(
	at org.apache.openjpa.persistence.EntityManagerImpl.merge(
	at mikedd.tests.TestCalendar.testMergeCalendar(

I'm running the test in eclipse and my classpath probably isn't set up to properly display
the openjpa version, 
output from svnversion -c : 406193:505052M

It looks like we're missing a case statement for JavaTypes.CALENDAR in org.apache.openjpa.kernelAttachStrategy.attachField.
I added one under JavaTypes.DATE and that resolved the issue for me. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message