Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check properties existence in PathBuilder #79
Oups I mean to check the properties existence in getter, not in
If I have a generated class with
This logic implicates a coupling between PathBuilder and the Q-type. The following behaviour would be better :
QUser might not be available, and it might not be QUser, but something else.
Is this ok with you?
added a commit
Jan 14, 2012
I added a template method for validation. Subclasses can now define their own validation logic. I didn't put Bean property validation directly into PathBuilder, since typesafe usage is already possible via Q-type generation and because the existence of a Bean property doesn't implicate that the property is valid for querying. Sometimes Q-type properties are also generated from fields without Java Bean accessors.