Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how customize ServiceBuilder?
hi
i want to customize ServiceBuilder in liferay 7.1 to auto generate some of feature , for example UI , ...
how can i create module and override methods for this class.
i don't want detail for this generation. only i don't know how override this class and methods for writing my codes.
tanks.
i want to customize ServiceBuilder in liferay 7.1 to auto generate some of feature , for example UI , ...
how can i create module and override methods for this class.
i don't want detail for this generation. only i don't know how override this class and methods for writing my codes.
tanks.
mokhtar hatampoor:
I'm not sure what "this class" would be. And it can be as simple or as complex as you like - depending on automatic UI generation for 1:n, n:m relationships between entities etc.
i want to customize ServiceBuilder in liferay 7.1 to auto generate some of feature , for example UI , ...
how can i create module and override methods for this class.
i don't want detail for this generation. only i don't know how override this class and methods for writing my codes.
XMLPortletFactory used to do something like this for an ancient version (if you're interested: A conversation on Radio Liferay Episode 32)
"this class" means "ServiceBuilder.java" .
my question is:
how i can override ServiceBuilder.java?
tanks
my question is:
how i can override ServiceBuilder.java?
tanks
mokhtar hatampoor:
AFAIK it's not prepared to be extended, you'd basically write your own service builder (most likely by reusing some existing code). Another option to think about is to tap into the build process, run stock servicebuilder and add additional steps (for other files) on top of it. That'll probably be easier to maintain with future upgrades.
how i can override ServiceBuilder.java?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™