| Summary: | No primary key attribute in other plug-in project | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Missing name <kristof.kulesza> | ||||
| Component: | JPA | Assignee: | Neil Hauge <neil.hauge> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | annu2127, curtis.windatt.public, kentarou, luk.pogor, neil.hauge, sebtardif | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Missing name
Hi Kristof, Would you please provide more details about the bug? Thanks. Created attachment 205247 [details]
Example
In the attachment you will find two projects with test classes. You will see, that even if the ID field exists, the message "The entity has no primary key attribute defined" is shown. (in the problems view) The second thing is, that even if the first class implements the interface Serializable, the second one is created also with this implementation(by the wizard "New Entity"). Is this necessary? This does not sound like a problem with PDE. What kind of projects are you creating? PDE does not handle primary keys or primary attributes. Are you working with EMF or some other modelling tool? No just the JPA plug-in. The project has only JPA facets. Moving to EclipseLink JPA. You would currently need to list the inherited entity as a class in the persistence.xml to make this work. The listing of this file should not affect your behavior at runtime, but will tell the tooling that a file from an external project needs to be "pulled" into this persistence unit. This is a workaround from the fact that Dali currently supports a 1 persistence.xml, 1 persistence unit per project configuration. I feel this was fixed, haven't seen in earlier versions of eclipse, but recently migrated to STS 3.6.4 which is build on Eclipse 4.4.2, and I am seeing this one again. & as already mentioned here....adding class to persistence.xml is helping. |