Foros de discusión

How to write the custom-query for Organization entity in ext

chandra sekhar, modificado hace 13 años.

How to write the custom-query for Organization entity in ext

Regular Member Mensajes: 149 Fecha de incorporación: 7/07/09 Mensajes recientes
Hi All,

I want to write the custom query for organization entity in ext directory. How to write the custom query for that in ext.

Thanks in advance.

Regards,
Chandrasekhar
thumbnail
Shagul Khajamohideen, modificado hace 13 años.

RE: How to write the custom-query for Organization entity in ext

Liferay Master Mensajes: 758 Fecha de incorporación: 27/09/07 Mensajes recientes
You could write custom queries in the plugins as well.

The below posts may be useful

http://www.liferay.com/community/wiki/-/wiki/Main/Service+Builder+Finders

http://www.liferay.com/community/wiki/-/wiki/Main/How%20to%20create%20a%20custom%20query%20in%20liferay

Portal source can best as further reference as there are plenty of custom-sql.
chandra sekhar, modificado hace 13 años.

RE: How to write the custom-query for Organization entity in ext

Regular Member Mensajes: 149 Fecha de incorporación: 7/07/09 Mensajes recientes
Hi,

Thank you very much for your replay. But my requirement is to extend the organization entity by writing some more custom queries in ext environment. For that what procedure I need to follow. Please help me.

Thanks in advance.

Regards,
Chandrasekhar
thumbnail
Shagul Khajamohideen, modificado hace 13 años.

RE: How to write the custom-query for Organization entity in ext

Liferay Master Mensajes: 758 Fecha de incorporación: 27/09/07 Mensajes recientes
Which version of Liferay are you using? Also what do you exactly mean "extend the organization entity by writing some more custom queries in ext environment"?

Probably better explanation of what you are trying to do can help find the right direction to address the issue.
chandra sekhar, modificado hace 13 años.

RE: How to write the custom-query for Organization entity in ext

Regular Member Mensajes: 149 Fecha de incorporación: 7/07/09 Mensajes recientes
Hi,
Currently I am using the liferay-5.1.2.

Actually my requirement is I want to write a custom query for organization entity. But Organization entity's service,xml file is under portal level. So how to write custom-query for organization entity in ext environment.

Thanks in advance.

Regards,
Chandrasekhar
thumbnail
Shagul Khajamohideen, modificado hace 13 años.

RE: How to write the custom-query for Organization entity in ext

Liferay Master Mensajes: 758 Fecha de incorporación: 27/09/07 Mensajes recientes
You should not change the service.xml of Liferay core. You should write your own. The below post may be useful in getting there.

http://www.liferay.com/community/forums/-/message_boards/message/4439075

Best,
Shagul