留言板

Clarification about ServiceBuilderFramework

Angelo Immediata,修改在9 年前。

Clarification about ServiceBuilderFramework

New Member 帖子: 8 加入日期: 12-12-17 最近的帖子
Hi there

I'm using LF 6.2 GA (community edition)

I build my own service and the Service Builder Framework successfully create dall the need code to manage my service

I'm wondering, now, if there is some method in the created service that is able in returning a parent entity with all its related entities (we created a many-to-many relation)

I'll try to more clear. Let's suppose I want to create a service in order to manage the entities Student and Course. A student can have more courses

Can I use any REST and/or SOAP service (built by the Service Builder Framework) that is able in returning a student with all his courses?

Thank you
Angelo
thumbnail
David H Nebinger,修改在9 年前。

RE: Clarification about ServiceBuilderFramework

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
No, the parent/child relationships are not returned or available. Mostly it is due to the normal crossing of the web app boundary (class loader boundary) so you're left to invoking multiple calls to retrieve all of your entities separately.