Fórum

<Entity>Impl.java new methods dont work

Bob Kostas, modificado 11 Anos atrás.

<Entity>Impl.java new methods dont work

New Member Postagens: 10 Data de Entrada: 10/04/12 Postagens Recentes
When i add a new (extension) method example(public void setFile(byte[] file) and public byte[] getFile()) at this class and i run Service Builder the generated EntityClp.java implements this methods with throw UnsupportedOperationException.java

I cant use this methods in my Util class as it throws the exception when i call setFile or getFile.


Any solution??
Thanks.
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: <Entity>Impl.java new methods dont work

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
Nope, not out of the box anyway. This is kinda a known problem.

If you needed to fix it, you can hack the generated Clp classes to do the right thing, but you'll have to re-apply the hack every time you run service builder.
thumbnail
Jan Geißler, modificado 11 Anos atrás.

RE: <Entity>Impl.java new methods dont work

Liferay Master Postagens: 735 Data de Entrada: 05/07/11 Postagens Recentes
Once Again. I really don't understand why this is not working/got fixed....
So unconvenient.