I have an EJB Diagram synchronized from ERD diagram.I updated the EJB diagram to NetBeans and the Entity classes were created.But I found that column name of the columns are not created.This created mapping errors while using persistence methods.I found the following info in GlassFish site
If column or table names are not explicitly specified for a field or entity, the Enterprise Server uses upper case column names by default, so any mapping references to the column or table names must be in upper case.
Since the column names in our DB are in lower case,there was error while mapping.
Is there any way we can add the name of column .
@Id
@Column(name = "order",nullable=false, length=36)
public String getOrder() {
return this.order;}
The code created by VP
@Id
@Column(nullable=false, length=36)
public String getOrder() {
return this.order;}
Please help.
Alphy