Hi,
I've wondered the same thing and taken a quick look at it. I'm pretty
sure that it can be done, but the big issue is how to identify what the
activation context's value means to the entity? With a PK it's easy to
make assumptions (cast the context value and if it can be cast to a long
and the
Try the following. It's not automatic but should provide the desired behaviour.
private EntityType entity;
@Inject
private Session session;
void onActivate(String searchString)
{
this.entity = (EntityType) Session.createQuery(from EntityType e where
Hi,
I like the feature that we can now pass Hibernate entity to the onActivate
and T5 automatically picks up object from database. however it assumes what
passed is the primary key, example:
1. this works.
localhost://page/1
2. this will not work:
localhost://page/myName
is there a way to