This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Length attribute should be added in @Column annotations in classes generated by Entity Classes from Database. Without this attribute, database recreated using toplink "Create Tables" option differs from the original DB.
Created attachment 52006 [details] Implementation for string columns
I implemented the length attribute for string columns, and the implementation for the precision and scale attributes would be similar. However, I'm a bit wary to commit it so late in the release cycle. The generated code is highly dependent on the implementations of JDBC drivers, so it needs to be tested properly by both QE and users. So I propose postponing this for the next release.
Checked in the attached implementation by Andrei. http://hg.netbeans.org/main/rev/c805c89ea81e
Please verify it in 6.5 M1
The "length" attribute will be generated only if the Attributes for Regenerating schema is checked in the very last step of the wizard.