Wow, that was fast, thanks a lot!
getAllClassMetadata() was what I was looking for!
On 04.02.2010 17:41, Thiago H. de Paula Figueiredo wrote:
On Thu, 04 Feb 2010 14:25:44 -0200, Alexander Muthmann
<amuthm...@dev-eth0.de> wrote:
Hi there,
Hi!
i have an abstract class which is extended by several classes. Those
classes are entities for my database, connected with hibernate.
Now I'm looking for a possibility, to list all classes, which extend
my abstract class.
Inject HibernateSessionSource, get the SessionFactory the use its
getAllClassMetadata() to get all the mapped classes. From now on,
you'll need to use reflection.
What I want to do:
I want to create a page, where you can use a BeanEditForm to create a
new entity. This page should be able, to generate a dynamic select
model, with which you finally chose, which type of entity you want to
create...
You'll need to create a BeanModel, not SelectModel. You can do that
easily using the BeanModelSource service.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org