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.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org