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.
Hi, It would be great if NB would be able to introspect a class and generate from that class boilerplate code for a DataSet that allows the class to be used in DataBinding. The class itself would typically implement its persistency to whatever resource. Iwan
I didn't get it. Could you describe it more in detail?
What I am thinking about here is that you define a class and click some menu-option that says "Generate Databinding", which will then introspect the class and for all attributes (primitives, String, Long, etc) it generates the code required to bind the class to a Dataset. Since I assume that that kind of code always looks the same for a particular type, I assume that NB could generate boilerplate code and lets me adjust the code if needed, e.g. to ensure that the value of some int is always between 0 and 9, or for example that a String is actually always an email address. Iwan
There is automatic code generation of DataBinding for JSR-172 client in nightly builds. You could try to play with it. We plan to add this functionality to the Web To Mobile Client.