java - One to Many relationship in Liferay Service Builder -


i've started learning liferay (6.2) week ago project. i've used "pure" java ee before (jsp, jsf, etc.) jpa (eclipselink).

what can't understand is:

how use servicebuilder create entities behave ones defined before e.g.: if define category , categoryproperty entity, in one-to-many relationship, can define finder categoryproperty returns categorypropertys parent categoryid.

based on book i'm reading, can modify implementation of categorylocalserviceimpl , categorypropertylocalserviceimpl , can't touch generated entities. if want list every categoryproperty belongs 1 category, have implement , call categorypropertylocalserviceutil.findallbycategoryid(categoryid) not want. category.getcategoryproperties() call more natural.

how achieve without messing whole structure? generated classes can touch? missing?

thank you!

shortly, understand right it's not whole story.

you can catch want implementing method getcategoryproperties() in categoryimpl class.

that method use finder method made , describe in question.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -