| Summary: | JPA editor should be able to create java entity from mapped superclass | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Stefan Dimov <stefan.dimov> | ||||||||||||||
| Component: | Diagram Editor | Assignee: | Petya Sabeva <petya.sabeva> | ||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Stefan Dimov <stefan.dimov> | ||||||||||||||
| Severity: | normal | ||||||||||||||||
| Priority: | P3 | ||||||||||||||||
| Version: | 0.5 | ||||||||||||||||
| Target Milestone: | 0.5 RC2 | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | All | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Stefan Dimov
Created attachment 177502 [details]
patch
I am not sure about the feature name in the pallete. It should be discussed.
The patch is not cpmaptible with the current HEAD version of the JPA editor. Perhaps, something is missing in the patch ... (In reply to comment #2) > The patch is not cpmaptible with the current HEAD version of the JPA editor. > Perhaps, something is missing in the patch ... Sorry for the misspelling: cpmaptible = compatible Created attachment 177915 [details]
Patch is updated...
Created attachment 177916 [details]
Mark the first patch as invalid
I have four notes: 1. If the (already existing) mapped superclass is in another package the new entity (created with drag-and-drop) has error because it's being created without necessary import clause. 2. If the mapped superclass has already an id it seems proper default to create the new entity without id. It will be inheritted from the superclass. 3. The new palette item should have a different icon than "Java Entity". Perhaps we should use the icon for the mapped superclass (see the attachment) 4. I'd prefer shorter text for the new palette item. Perhaps "Inheritted Entity" would be fine. (This one is my fault, because we should've discuss it earlier) Created attachment 177928 [details]
Mapped superclass icon
Created attachment 177947 [details]
patch
This patch now implements the four notes mentioned in the previous comment.
Created attachment 177953 [details]
patch
This patch is modified to be compatible with the version in the head.
Patch committed |