You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Miroslav Nachev <mi...@space-comm.com> on 2008/01/09 20:49:37 UTC
Field access Annotation for get/set methods
Hi,
I am looking for annotation which to generate get/set methods and to do
property change notification. Is there something like that?
For example:
@FieldAccess(access=FieldAccessType.ReadWrite, propertyChangeSupport=true)
class A
{
private int int1;
@FieldAccess(access=FieldAccessType.Read, propertyChangeSupport=false)
private int int2;
public static void main(String[] args)
{
A a = new A();
a.setInt1(1);
a.getInt1();
a.getInt2();
// Set Int2 is not available
// a.setInt2(2);
}
}
Miro.