custom annotation for dao method which doesn't need HQL in the entity

3 views
Skip to first unread message

Enrico Giurin

unread,
May 27, 2010, 5:46:49 AM5/27/10
to lambico-dev
As lambico developer/user I would like to define a custom marker
annotation to add to all those DAO methods which do not need
corresponding HQL Named Query in the entity.
i.e. all the methods like findbyXAndY where x, y are simple attributes
of the entity itself.

This prevents confusion and misunderstanding for all the developers
who have no clue why some methods need and some others no to have
NamedQuery in the entity.

Reply all
Reply to author
Forward
0 new messages