I\'m wondering if it is possible to initialize a transient attribute of an entity during a criteria query.
Example
@Entity public SampleEntity{ @
You can also initialize your transients in the default (i.e., no argument) constructor.
You can see that this is the strategy used, for example, in EclipseLink (read last comment in the following link):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292385