Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Bob Kostas
<Entity>Impl.java new methods dont work
17 de Julho de 2012 06:09
Resposta

Bob Kostas

Ranking: New Member

Mensagens: 10

Data de entrada: 10 de Abril de 2012

Mensagens 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.
David H Nebinger
RE: <Entity>Impl.java new methods dont work
17 de Julho de 2012 06:50
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11788

Data de entrada: 1 de Setembro de 2006

Mensagens 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.
Jan Geißler
RE: <Entity>Impl.java new methods dont work
17 de Julho de 2012 07:04
Resposta

Jan Geißler

Community Moderator

Ranking: Liferay Master

Mensagens: 735

Data de entrada: 5 de Julho de 2011

Mensagens recentes

Once Again. I really don't understand why this is not working/got fixed....
So unconvenient.