Hi guys,
some thought about this issue. Mainly there are two option for the implementation:

1- Objects stored in cache are by themselves Entites (marked with an @Entity)

2- Create a kind of wrapper Entity for non-entities objects

[1] Are more straight forward and should perform better, but are restricted to Enities
[2] Are more complex to develop, as have to figure out a good structure fot the wrapper, but satifies a lot of more use cases.


--
Alejandro Montenegro del Pino.
Viña del Mar - Chile
phone: (+56) 9-68358690