We have the following problems with the criteria classes:
Criteria for boolean attributes are not generated.
Some methods for associations are not generated in criteria classes. We have a class A and its subclass B. There is an association from A to C. A method for this association is generated in criteria class for A, but it is not generated in criteria class for B.
In the model I mailed you, there is a package “Request” in the diagram “Requests and Orders”. There is an association there between classes Request and RequestSpecification. One of the roles there has a name “request” - starting with a lower case. The code that is generated in the class RequestSpecificationCriteria reads like this:
public RequestCriteria CreateRequestCriteria() {
return new RequestCriteria(CreateCriteria(“Request”));
}
The criterium name “Request” does not match the role name, resulting in a runtime exception.
I just asked our engineers. They told me that the problem is not about the name “Request”, but because of missing the “ORM_” preffix. We have fixed the problem. I will send you a patch as soon as possible.
The other two problems are also fixed. The fix will be included in the patch that I will send you.