четверг, 3 февраля 2011 г.

Spring ROO + GWT. Back-end.

Playing with Spring Roo and GWT 2.1.1 plugin... Sometimes like it, sometimes - not. It's a long story, I'll concentrate on some tricky points...

It was not clear for me, how they implementing back-end stuff, as there are no any code in entity classes, as it usually appears in GWT examples. I found what Roo generates all back-end as AspectJ classes paced into same package as an entity. They are Roo-managed and not intended to be modified... If you need some special methods, you may create them in the entity class, Roo will not overwrite your code.

The tricky point - STS hide such files, .aj, by default. To show them, go to drop-down menu in Package Explorer in STS -> Filters... -> uncheck "Hide generated Spring Roo ITDs".

Комментариев нет:

Отправить комментарий