Creation of dynamic child nodes using JCROM

20 views
Skip to first unread message

Ashwin Raju Warrier

unread,
Jul 21, 2014, 1:16:55 PM7/21/14
to jc...@googlegroups.com
Hi!
I'm trying to map dynamic child nodes of a parent node using JCROM. I tried by giving @JcrChildNode annotation to each node but not able to create of dynamic child nodes. PFB an example.

Say I've node Manager node and there can be any number of child nodes like Employee-1, Employee-2, Employee-3, Employee-n and so on.

Considering each manager can have any number of employees under them, how can we read the Manager node & fetch the Employee nodes dynamically.

We tried to fetch dynamic child nodes by giving @JcrChildNode(name=Employee-*) for fetching nodes dynamically but it never worked.

Please let me know the approach and share any code snippets if available. 
Reply all
Reply to author
Forward
0 new messages