Interface NamingStrategy

    • Field Detail

      • DEFAULT

        static final NamingStrategy DEFAULT
        Constant for the default under score separated lower case strategy.
    • Method Detail

      • mappedName

        @NonNull
        java.lang.String mappedName​(@NonNull
                                    java.lang.String name)
        Return the mapped name for the given name.
        Parameters:
        name - The name
        Returns:
        The mapped name
      • mappedName

        @NonNull
        default java.lang.String mappedName​(@NonNull
                                            PersistentEntity entity)
        Return the mapped name for the given entity.
        Parameters:
        entity - The entity
        Returns:
        The mapped name
      • mappedName

        @NonNull
        default java.lang.String mappedName​(Embedded embedded,
                                            PersistentProperty property)
        Return the mapped name given an Embedded association and the property of the association. The default strategy takes the parent embedded property name and combines it underscore separated with the child parent property name.

        For example given:

        
         @Embedded Address address;
         

        Where the Address type has a property called street then a name of address_street will be returned

        Parameters:
        embedded - The embedded parent
        property - The embedded property
        Returns:
        The mapped name
      • mappedName

        @NonNull
        default java.lang.String mappedName​(@NonNull
                                            PersistentProperty property)
        Return the mapped name for the given property.
        Parameters:
        property - The property
        Returns:
        The mapped name
      • mappedName

        @NonNull
        default java.lang.String mappedName​(Association association)
        Return the mapped name for the given association.
        Parameters:
        association - The association
        Returns:
        The mapped name
      • mappedName

        @NonNull
        default java.lang.String mappedName​(@NonNull
                                            java.util.List<Association> associations,
                                            @NonNull
                                            PersistentProperty property)
      • getForeignKeySuffix

        @NonNull
        default java.lang.String getForeignKeySuffix()
        The default foreign key suffix for property names.
        Returns:
        The suffix