Fórum
get table Id from class Name
Brahim TARNAOUI, modificado 12 Anos atrás.
get table Id from class Name
Junior Member Postagens: 64 Data de Entrada: 15/06/10 Postagens Recentes
Hello,
how can i get tableId from a className??
for example i :
tabl if of BlogEntry table is 11874
and Class Name is BlogsEntry.class
so, how can i get the value 11874 from BlogsEntry.class
sayed otherwise, ther is a method who return 11847 and take as parameter BlogsEntry.class???
your help is needed
thanks
how can i get tableId from a className??
for example i :
tabl if of BlogEntry table is 11874
and Class Name is BlogsEntry.class
so, how can i get the value 11874 from BlogsEntry.class
sayed otherwise, ther is a method who return 11847 and take as parameter BlogsEntry.class???
your help is needed
thanks
Thomas Krauß, modificado 12 Anos atrás.
RE: get table Id from class Name
New Member Postagens: 22 Data de Entrada: 18/08/11 Postagens Recentes
PortalUtil.getClassNameId(Model.class.getName())
and other direction
PortalUtil.getClassName(10095)
returns "com.liferay.portlet.messageboards.model.MBMessage" for Example
and other direction
PortalUtil.getClassName(10095)
returns "com.liferay.portlet.messageboards.model.MBMessage" for Example
Samir Gami, modificado 12 Anos atrás.
RE: get table Id from class Name
Regular Member Postagens: 162 Data de Entrada: 04/02/11 Postagens Recentes
Also,
ClassNameLocalServiceUtil.getClassNameId(classObj)
And,
ClassNameLocalServiceUtil.getClassName(id)
ClassNameLocalServiceUtil.getClassNameId(classObj)
And,
ClassNameLocalServiceUtil.getClassName(id)
Richard Oliver Legendi, modificado 10 Anos atrás.
RE: get table Id from class Name
Junior Member Postagens: 35 Data de Entrada: 30/11/09 Postagens Recentes
Yup Samir is absolutely correct on that.
If you're interested, here's one of my posts for example snippets.
If you're interested, here's one of my posts for example snippets.