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.
Currently there is no support for iterative development with JPA. We would like to see support for this specific use case: modification of existing entity classes to reflect new columns. I believe other changes like removed column or changing data type are much less frequent.
Probably this is concerns mainly the entities from db generator, so reassigning to Andrei. Anyway, we could provide some support for this in hints as well.
Is it possible that this feature be implemeted for 6.1 ?
We can try to do at least the new columns for 6.1.
No plan to support this in NB 6.5
*** Bug 138796 has been marked as a duplicate of this bug. ***
It's a very helpful feature, because every time I change the Db schema I have to manually change my entities, that were originally created by netbeans. When the entity itself is not changed manually, you may recreate it from start, but if you change it in any way, you loose all your customization code. If you have a large number of entities it becomes a tiresome and error-prone task. I hope it can be implemented in 6.9. Geraldo.
Yes I hope too! It's really a problem when I write personalized comparable,equal and other particular methods Now I solve in this way: copy all source, delete the entity, refresh it from db and than paste code manually. I can change manually the fields, but when table are to big or change are enough I spent much time.
This is (partially?) implemented Sergey, right?
In this area there is always something more to implement, but currently we have some ability to update entities and some changes from db will propagate.
*** Bug 203257 has been marked as a duplicate of this bug. ***
initial request was regarding new columns - > resolved, aslo more specific requests need to be filed if required instead of general "need to support update" i.e. what exactly need to be done except new columns.