In this case, I needed to select and then persist, so nature=VIEW_MODEL
did the trick. Thanks a lot. 

El 2016-09-12 03:43, Dan Haywood escribió: 

> Hi Hector, 
> 
> That OID 
> "!domainapp.dom.smartae.consultas.ConsultaAtributo:11f35f3b-1255-4105-ab36-3a40febe637b"
>  is for a transient entity ... the "!" prefix is what determines it [1] (in 
> which case a GUID is used as a temporary id). 
> 
> So, my guess is that you either need to ensure that the entities being 
> returned are persisted, or to instead return view models [2] (eg annotate 
> with either @ViewModel, @DomainObject(nature=VIEW_MODEL), or @XmlElement). 
> 
> Let us know how you get on. 
> 
> Cheers 
> Dan 
> 
> [1] 
> https://github.com/apache/isis/blob/3dffc2d96e240982d16131d57d34fc8f54d1292c/core/metamodel/src/main/java/org/apache/isis/core/metamodel/adapter/oid/OidMarshaller.java#L96
>  [1] 
> [2] http://isis.apache.org/guides/ugbtb.html#_ugbtb_view-models [2]

-- 

Hector Fabio Meza

R&D LEAD SMARTOOLS 
(57) 300 2254455 [3] 
Skype: hectorf.meza 
www.smartools.com.co [4] 

 

Links:
------
[1]
https://github.com/apache/isis/blob/3dffc2d96e240982d16131d57d34fc8f54d1292c/core/metamodel/src/main/java/org/apache/isis/core/metamodel/adapter/oid/OidMarshaller.java#L96
[2] http://isis.apache.org/guides/ugbtb.html#_ugbtb_view-models
[3] tel:%2857%29%20300%206815404
[4] http://www.smartools.com.co/

Reply via email to