You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Werner Punz <we...@gmx.at> on 2005/01/31 20:56:26 UTC

Hibernate datamodel

Ok, since I got
several messages and I dont know where to post
the code to, I am sending the code down this list.
Here is a working Hibernate data model, which does also
page caching.
Note, the data model does not have any hibernate code per se,
the hibernate access is done in a delegator class, which is
passed down the model.

The data model does only the page caching, to keep the number
of open connections to a minimum, and it does the glueing
into the JSF framework.

The code itself should work as is, but you will have
to implement your own query/accessor class, or
you plug your own hibernate code into the
refreshCache method (thats where the cache
is filled with new hibernate objects)

Attached are the relevant files if you are in need for an example query 
object (that would be too much out of scope, just dump it into 
refreshCache) send me a mail, the code is a little bit rough around the 
edges and only the needed functionality is implemented (needed in my 
project) feel free
to do whatever you want to do with it. I would be happy if the code 
would land one way or the other in myfaces.