capitalization « Property « JPA Q&A





1. Hibernate property name capitalisation issue    stackoverflow.com

I have a problem with how hibernate/JavaBeans constructs property names. Here's my property.

private boolean aNumberFl;

@Column( name = "aNumberFl", nullable = false )
@Type( type = "yes_no" )
public boolean getANumberFl()
{
    return ...

2. How does Hibnerate choose property capitalization?    stackoverflow.com

> @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 ...