[ 
https://issues.apache.org/jira/browse/ISIS-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oscar Bou resolved ISIS-644.
----------------------------

    Resolution: Fixed


The following test is not passing on a machine with a Spanish locale:

Tests in error: 
  
test(org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstractTest):
 Invalid format: "01-Apr-2013" is malformed at "Apr-2013"

Tests run: 182, Failures: 0, Errors: 1, Skipped: 0


> Update FrameworkSynchronizer to avoid the "Object not yet known to Isis" 
> exception
> ----------------------------------------------------------------------------------
>
>                 Key: ISIS-644
>                 URL: https://issues.apache.org/jira/browse/ISIS-644
>             Project: Isis
>          Issue Type: Bug
>          Components: Objectstore: JDO
>            Reporter: Oscar Bou
>            Assignee: Oscar Bou
>             Fix For: objectstore-jdo-1.4.0
>
>
> Sometimes the Isis synchronizer has not yet picked up the domain entity and 
> needs to be created.
> It has been detected when using the @Persistent ("dependentElement="true") 
> JDO annotation, such as in:
> @PersistenceCapable
> @Inheritance(strategy = InheritanceStrategy.NEW_TABLE)
> public class TimeScale extends AbstractScale {
>    // {{ TimeScaleLevels (Collection)
>    @Persistent(mappedBy = "timeScale", dependentElement = "true")
>    private SortedSet<PointInTime> timeScaleLevels = new 
> TreeSet<PointInTime>();
>    
>    ...
> }
> The solution is simply to update the ensureRootObject method.
> Replace the "getAdapterManager().getAdapterFor(pojo)" by 
> "getAdapterManager().adapterFor(pojo)" as it will create the adapter if it's 
> still not available to Isis.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to