I understand the basic concepts. Data organisation for this project is trivial.
Houses->Rooms->Chairs
"Yacho" wrote : You Can fetch your entity with all referenced data - and display
it somehow
No I can't.... hence OP :)
The actual display tree component is irrelavent at this stage. Take for example my
model....
House class has a @OneToMany List<Room> rooms in it.
Room has a House house parent reference in it.
hibernate deploys this and generates the tables, with constraints, as i would expect. My
first step would be to, for example, show the list of houses with the number of rooms in
each. I've seen the boilerplate generated code for displaying normal properties, E.g.
#{house.name} but how do i go about displaying house.rooms.size() in JSF/facelet. does any
code for this need to go in a session bean? what alterations go in the entity.
as i said i'm a beginner. a simple as possible please.
many thanks
Ro
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090054#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...