Community
Participate
Working Groups
STEPS: 1. create a 3.0 EJB project in a 5.0 EAR 2. Add the JPA facet 3. Bring up the new Entity wizard 4. specify a Class name and Java package RESULT: At this point can select Finish without having specified a key field on the next page of the wizard. After selecting Finish, the following error appears in the Problems view: Entity "..." has no Id or EmbeddedId. It would be good if the wizard flagged when a key field is required so they can avoid the error. That is, it's much easier to specify a key field in the wizard in response to an error at the top of the wizard then it is to subsequently define a field. Alternatively, a user would have to define an ID or EmbeddedId annotation. NOTE: if you define an entity that inherits from another entity via single table inheritance then in that case a key field is not required. If that's true, then a message should only be issued when it is truly required.
A warning message in the wizard would be nice for this case. Disabling the Finish button is probably too restrictive, but a warning would be good.
A warning would be acceptable. Is there any chance of getting this fixed in the 2.0.3 release of Dali?
We have a release planned for this December, so October is our last month for active development on Dali 2.1. As a result, we are trying to stay focused on 2.1 development and only work on the most serious items for maintenance. If someone else is able to contribute this, we can certainly get it checked in for maintenance. Otherwise we can take a quick look, but I can't make any promises. It sounds like a quick change on the surface, but knowing when to display the message might make things a bit more complicated in the context of the wizard.
Moving JPA specific bugs to new JPA component in bugzilla.