문제

I'm trying to display data in a JSP file and I got a question about how deep I can access my data's members (god this sounds wrong).

So I have an entity called Assignment which holds OneToOne relations to other entities such as Project and Role.

For displaying purpose I created a class named ResourcePlanningItem which is supposed to hold data from a Resource and its corresponding Assignments and other stuff. My question is will I be able to access for example the name member of the Role entity contained in the assignment member contained in my ResourcePlanningItem?

Something like ${resourcePlanningItem.assignment.role.name} ? Or is there a depth limit ?

Thank you!

도움이 되었습니까?

해결책

Yes that would be fine if they are public and have appropriate getters, and are obviously serialized correctly.

There is no limit - apart from common sense.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top