@Entity
class Host
{
private String Model;
private String OS;
@Column (name="OS")
public String getOS() ...
@Column (name="MODEL")
public String getModel()...
}
So when I say Restriction.eq(‘OS”, “foo”) and Restriction.eq(“model”, “foo”) it works but not “os” or “Model” or “MODEL”. So way does the capitalization get dropped for model and not OS?
It would determine capitalization by introspecting getter methods. You can read about conventions in Java Beans Specifications.