It would be nice if I can select some fields in a JPA entity class, say Refactor, and then be able to say "Convert to Embeddable".
some thought also:
- May be allowed either for ids fields/properties only or for any with
warning/option regarding changes in non id fields.
- May be able to select existent embedded class with same columns
instead of new one generation
- May be applied to entire project for all entities with the same
- Do not forget to update all usages taking in mind embedded id can be
null and call to specific member isn't possible in this case when
separate columns can be null and accessed easily
Refactor menu seems to be a place for this functionality, except not
sure how to select several fields before call (at least in editor).
One more option: Refactor|Move to mapped superclass. May need to be filed separately.
>P2, even it have no much sense, we need to review enhancement from time to time, it may help.
Any updates ?
just look through recently but it seems relatively complex even from ui point of view as there are a lot of items in refactoring menu, it may require some ui redesign.