Yes ... I've read ... parts of it more than once ... but
unfortunately, I do not seem to be clever enough.

I want to write a value encoder which maps Hibernate Entities to their
IDs and vice versa.

I've written
- a HibernateValueEncoder
- a HibernateValueEncoderFactory
- an AppModule containing the following:

public static void
contributeValueEncoderSource(MappedConfiguration<Class<?>,
ValueEncoderFactory<ObjektMitSeqID>> configuration) {
                configuration.add(ObjektMitSeqID.class, new 
HibernateValueEncoderFactory());
}

(where ObjektMitSeqID is the base class of all of my Hibernate Entities).

This all works fine, no problem, but only as long as I use my own
HibernateUtil to create a Session. But I would prefer using tapestry
to create the Hibernate Session.

Since I don't create a service on my own, but only contribute
configuration to an existing service, I have absolutely no plan how or
where to inject the Hibernate Session.

Perhaps I'm a little bit confused. I don't know. Do you have another hint?


Marcus.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to