You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a class is annotated with JPA's @Entity, there are certain requirements placed on the class. Please create a rule that requires the class to be a top-level class.
Note: Hibernate does not have this requirement. So, those using Hibernate will need to disable this rule.
Code Sample:
The following class will cause a problem at runtime because it is a nested class.
class MyClass
{
@Entity
class MyEntity
{
...
}
}
Possible Properties:
I cannot think of any. Can you?
The text was updated successfully, but these errors were encountered:
Proposed Rule Name: JPATopLevelClass
Proposed Category: Bug
Description:
When a class is annotated with JPA's
@Entity
, there are certain requirements placed on the class. Please create a rule that requires the class to be a top-level class.Note: Hibernate does not have this requirement. So, those using Hibernate will need to disable this rule.
Code Sample:
The following class will cause a problem at runtime because it is a nested class.
Possible Properties:
I cannot think of any. Can you?
The text was updated successfully, but these errors were encountered: