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.
I've made a generation of entity from mysql sakila db ( found on the web) for column year(4) it is generating a property with Date type, and that happen to cause an blocker problem on saving such an entity at least when using hibernate as JPA. I suggest rather creating a int type for such a property. If sbd wants - he could easily create a on-entity converter to get a Date object and so on. What mechanism is NB using for generating those entities? It's their bug ;-)
thanks, for your report, but can you attach databse schema? also how this type is present in the schema if you create one with new - persistence|database schama wizard?
sakila db is http://downloads.mysql.com/docs/sakila-db.tar.gz instructions are http://dev.mysql.com/doc/sakila/en/sakila.html I wasn't using new - persistence|database schema wizard? but just 'generate entities from database'
Requested information attached, so removiing the INCOMPLETE keyword.
yes, need to reevaluate,it maybe hibernate issue if hibernate can't convert Date to Year on persist.
ok, first in my opinion year is a subtipe of date, so it should be date and do not require any adapters except output purpose. also tested with eclipselink, and was able to persist date to mysql YEAR(4). in my opinion it's hibernate issue.