I am going through the hibernate 5.2.11.Final Documentation. the link http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#basic-lob. I noticed that the example of entity classes in the document is having the static modifier like
@Entity(name = "Product")
public static class Product {
@Id
private Integer id;
private String name;
@Lob
private String warranty;
//Getters and setters are omitted for brevity
}
As per my understanding a An Entity should be a top level class. In java a Top level class can not be static. So my question is how is it possible ? There are so many examples of entity in that documentation with the class as static so i don't think it is some unintentional mistake.