This content has been marked as final.
Show 3 replies
-
1. Re: Why a STATIC RESTRICTIONS in Seam-gen EntityQuery?
mars1412 Feb 13, 2008 8:50 AM (in response to boevink)IMO:
it's static because you want to make it a class-variable (NOT instance variable)
it's final, because you will never change it
That's why it is private
The only place currently reffering to this attribute is within the class itself (getRestrictions). -
2. Re: Why a STATIC RESTRICTIONS in Seam-gen EntityQuery?
boevink Feb 13, 2008 9:04 AM (in response to boevink)"mars1412" wrote:
IMO:
it's static because you want to make it a class-variable (NOT instance variable)
it's final, because you will never change it
That's why it is private
The only place currently reffering to this attribute is within the class itself (getRestrictions).
But why don't you want it to be an instance variable? -
3. Re: Why a STATIC RESTRICTIONS in Seam-gen EntityQuery?
mars1412 Feb 13, 2008 9:37 AM (in response to boevink)http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html
BTW: that's plain java - nothing to do with seam