[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-2040) JPA Validator signs that Entity "EntityName" has no Id or EmbeddedId when that class extends another Entity Class with @Id defined on Super Class
Max Andersen (JIRA)
jira-events at lists.jboss.org
Tue Apr 15 06:10:55 EDT 2008
[ http://jira.jboss.com/jira/browse/JBIDE-2040?page=all ]
Max Andersen updated JBIDE-2040:
--------------------------------
Component/s: UpStream
(was: Hibernate)
Fix Version/s: LATER
Description:
@Entity
public class Person extends BaseEntity{
// other properties
}
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
@Id
private Long id;
//Getters and Setters
}
Eclipse JPA Validator shows: Entity "Person" has no Id or EmbeddedId
was:
@Entity
public class Person extends BaseEntity{
// other properties
}
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
@Id
private Long id;
//Getters and Setters
}
Eclipse JPA Validator shows: Entity "Person" has no Id or EmbeddedId
I believe you are seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=217192, you should follow up there so the Dali project could get an failing example.
> JPA Validator signs that Entity "EntityName" has no Id or EmbeddedId when that class extends another Entity Class with @Id defined on Super Class
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-2040
> URL: http://jira.jboss.com/jira/browse/JBIDE-2040
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: UpStream
> Affects Versions: 2.0.1
> Environment: Eclipse 3.3.2 with Jboss Tools 2.0.1GA
> Reporter: Rafael Benevides
> Fix For: LATER
>
>
> @Entity
> public class Person extends BaseEntity{
> // other properties
> }
> @MappedSuperclass
> public abstract class BaseEntity implements Serializable {
> @Id
> private Long id;
> //Getters and Setters
> }
> Eclipse JPA Validator shows: Entity "Person" has no Id or EmbeddedId
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list