JPAVerification

See also EJBVerification

Checks Migrated to NB 6.0 :

Note that single check may generate several types of errors and/or warnings.

Assertion Name Applies to Available Hints Remarks
ConsistentAccessType Entity, MappedSuperClass, Embeddable, IdClass UnifyFieldAccessHint, UnifyPropertyAccess
IdDefinedInHierarchy Entity CreateId
NoIdClassOnEntitySubclass Entity
PublicClass Entity, MappedSuperClass, Embeddable, IdClass MakeClassPublic
UniqueEntityName Entity
HasNoArgConstructor Entity, MappedSuperClass, Embeddable, IdClass CreateDefaultConstructor
JPAAnnotsOnlyOnAccesor Entity, MappedSuperClass, Embeddable
NonFinalClass Entity, MappedSuperClass, Embeddable RemoveFinalModifier
SerializableClass Entity ImplementSerializable
IdClassOverridesEqualsAndHashCode IdClass
LegalCombinationOfAnnotations Entity, MappedSuperClass, Embeddable, Persistent Field A number of sub-checks
TopLevelClass Entity, MappedSuperClass, Embeddable
ValidPrimaryTableName Entity
PersistenceUnitPresent Entity, MappedSuperClass, Embeddable CreatePersistenceUnit
QueriesProperlyDefined <any class>
OnlyEntityOrMappedSuperclassCanUseIdClass <any class>
AttrIsEncapsulated Persistent Attribute EncapsulateFieldHint
RelationshipForEntityTypeAttrDefined Persistent Attribute CreateUnidirOneToOneRelationship, CreateOneToOneRelationshipHint, CreateOneToManyRelationshipHint
ValidBasicType Persistent Attribute
ValidModifiers Persistent Attribute
TemporalFieldsAnnotated Persistent Attribute CreateTemporalAnnotationHint
ValidVersionType Persistent Attribute
MVRelationshipForEntityTypeAttrDefined Persistent Attribute CreateUnidirManyToOneRelationship, CreateManyToOneRelationshipHint, CreateManyToManyRelationshipHint
ValidColumnName Persistent Attribute
GeneratedValueIsId Persistent Attribute


Regressions from 5.5

Missing assertions:

  • MultipleIdsWithIdClass
  • IdClassNotAnInnerClass
  • AllPAttrsOfIdClassDefinedInEntity
  • DateTypePKandTemporalType
  • DiscriminatorValueOnConcreteEntity
  • EmbeddedTargetIsEmbeddable
  • InheritanceOnRootEntity
  • JoinInformationOnOwningSide
  • NamedQueryUnique
  • GeneratedIDFieldIsIntegral
  • EitherSimpleIdOrEmbeddedId

Missing hints:

  • MoveAnnotationsFromSetterToGetter

Deliberately dropped assertions:

  • DiscriminatorColumnOnRootEntity
  • IdColumnHasNullableSetToFalse

Requested assertions:

  • ConsistedAccessTypeForEntityAndEmbedded (portability warning)
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo