code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public void read(Audited allClassAudited) {
// First reading the access types for the persistent properties.
readPersistentPropertiesAccess();
if ( persistentPropertiesSource.isDynamicComponent() ) {
addPropertiesFromDynamicComponent( persistentPropertiesSource );
}
else {
// Retrieve classes and prope... | Reads persistent properties form a {@link PersistentPropertiesSource} and adds the ones that are audited to a
{@link AuditedPropertiesHolder}, filling all the auditing data.
@author Adam Warski (adam at warski dot org)
@author Erik-Berndt Scheper
@author Hern&aacut;n Chanfreau
@author Lukasz Antoniak (lukasz dot anton... | read | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void readAuditOverrides(ClassDetails classDetails) {
/* TODO: Code to remove with @Audited.auditParents - start. */
final Audited allClassAudited = classDetails.getDirectAnnotationUsage( Audited.class );
if ( allClassAudited != null && allClassAudited.auditParents().length > 0 ) {
for ( Class c : allCl... | Recursively constructs sets of audited and not audited properties and classes which behavior has been overridden
using {@link AuditOverride} annotation.
@param classDetails Class that is being processed. Currently mapped entity shall be passed during first invocation. | readAuditOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private List<AuditOverride> computeAuditOverrides(ClassDetails classDetails) {
final AuditOverrides auditOverrides = classDetails.getDirectAnnotationUsage( AuditOverrides.class );
final AuditOverride auditOverride = classDetails.getDirectAnnotationUsage( AuditOverride.class );
if ( auditOverrides == null && audit... | @param classDetails Source class.
@return List of @AuditOverride annotations applied at class level. | computeAuditOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void checkSuperclass(ClassDetails child, ClassDetails parent) {
if ( !child.isImplementor( parent.toJavaClass() ) ) {
throw new EnversMappingException(
"Class " + parent.getName() + " is not assignable from " + child.getName() + ". " +
"Please revise Envers annotations applied to " + child.getN... | Checks whether one class is assignable from another. If not {@link EnversMappingException} is thrown.
@param child Subclass.
@param parent Superclass. | checkSuperclass | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private MemberDetails getProperty(ClassDetails classDetails, String propertyName) {
final MemberDetails member = getMember( classDetails, propertyName );
if ( member == null ) {
throw new EnversMappingException(
"Property '" + propertyName + "' not found in class " + classDetails.getName() + ". " +
"... | Checks whether class contains property with a given name. If not {@link EnversMappingException} is thrown.
@param classDetails Class.
@param propertyName Property name.
@return Property object. | getProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void readPersistentPropertiesAccess() {
final Iterator<Property> propertyIter = persistentPropertiesSource.getPropertyIterator();
while ( propertyIter.hasNext() ) {
final Property property = propertyIter.next();
addPersistentProperty( property );
// See HHH-6636
if ( "embedded".equals( property.... | Checks whether class contains property with a given name. If not {@link EnversMappingException} is thrown.
@param classDetails Class.
@param propertyName Property name.
@return Property object. | readPersistentPropertiesAccess | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPersistentProperty(Property property) {
if ( "field".equals( property.getPropertyAccessorName() ) ) {
fieldAccessedPersistentProperties.add( property.getName() );
}
else {
propertyAccessedPersistentProperties.put( property.getName(), property.getPropertyAccessorName() );
}
} | Checks whether class contains property with a given name. If not {@link EnversMappingException} is thrown.
@param classDetails Class.
@param propertyName Property name.
@return Property object. | addPersistentProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void createPropertiesGroupMapping(Property property) {
final Component component = (Component) property.getValue();
for ( Property componentProperty : component.getProperties() ) {
propertiesGroupMapping.put( componentProperty.getName(), property.getName() );
}
} | Checks whether class contains property with a given name. If not {@link EnversMappingException} is thrown.
@param classDetails Class.
@param propertyName Property name.
@return Property object. | createPropertiesGroupMapping | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private Audited computeAuditConfiguration(ClassDetails classDetails) {
Audited allClassAudited = classDetails.getDirectAnnotationUsage( Audited.class );
// If processed class is not explicitly marked with @Audited annotation, check whether auditing is
// forced by any of its child entities configuration (@Audited... | @param classDetails Class which properties are currently being added.
@return {@link Audited} annotation of specified class. If processed type hasn't been explicitly marked, method
checks whether given class exists in {@link AuditedPropertiesReader#overriddenAuditedClasses} collection.
In case of succe... | computeAuditConfiguration | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertiesFromDynamicComponent(PersistentPropertiesSource propertiesSource) {
Audited audited = computeAuditConfiguration( propertiesSource.getClassDetails() );
if ( !fieldAccessedPersistentProperties.isEmpty() ) {
throw new EnversMappingException(
"Audited dynamic component cannot have prop... | @param classDetails Class which properties are currently being added.
@return {@link Audited} annotation of specified class. If processed type hasn't been explicitly marked, method
checks whether given class exists in {@link AuditedPropertiesReader#overriddenAuditedClasses} collection.
In case of succe... | addPropertiesFromDynamicComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertiesFromClass(ClassDetails classDetails) {
final Audited allClassAudited = computeAuditConfiguration( classDetails );
//look in the class
classDetails.forEachField( (i, field) -> addFromProperty(
field,
it -> "field",
fieldAccessedPersistentProperties,
allClassAudited
) );... | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | addPropertiesFromClass | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean isClassHierarchyTraversalNeeded(Audited allClassAudited) {
return allClassAudited != null || !auditedPropertiesHolder.isEmpty();
} | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | isClassHierarchyTraversalNeeded | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromProperty(
MemberDetails memberDetails,
Function<String, String> accessTypeProvider,
Set<String> persistentProperties,
Audited allClassAudited) {
if ( !memberDetails.isPersistable() || memberDetails.hasDirectAnnotationUsage( Transient.class ) ) {
return;
}
final String attribute... | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | addFromProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromPropertiesGroup(
String embeddedName,
MemberDetails memberDetails,
String accessType,
Component propertyValue,
Audited allClassAudited) {
final ComponentAuditingData componentData = new ComponentAuditingData();
final boolean isAudited = fillPropertyData( memberDetails, componentDa... | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | addFromPropertiesGroup | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromComponentProperty(
MemberDetails memberDetails,
String accessType,
Component propertyValue,
Audited allClassAudited) {
final ComponentAuditingData componentData = new ComponentAuditingData();
final boolean isAudited = fillPropertyData( memberDetails, componentData, accessType, allCla... | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | addFromComponentProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromNotComponentProperty(MemberDetails memberDetails, String accessType, Audited allClassAudited) {
final PropertyAuditingData propertyData = new PropertyAuditingData();
final boolean isAudited = fillPropertyData( memberDetails, propertyData, accessType, allClassAudited );
if ( isAudited ) {
/... | Recursively adds all audited properties of entity class and its superclasses.
@param classDetails Currently processed class. | addFromNotComponentProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private boolean fillPropertyData(
MemberDetails memberDetails,
PropertyAuditingData propertyData,
String accessType,
Audited allClassAudited) {
// check if a property is declared as not audited to exclude it
// useful if a class is audited but some properties should be excluded
final NotAudited unVer... | Checks if a property is audited and if yes, fills all of its data.
@param memberDetails Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | fillPropertyData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromComponentProperty(
Property property,
String accessType,
Component propertyValue,
Audited allClassAudited) {
final ComponentAuditingData componentData = new ComponentAuditingData();
final boolean isAudited = fillPropertyData( property, componentData, accessType, allClassAudited );
... | Checks if a property is audited and if yes, fills all of its data.
@param memberDetails Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | addFromComponentProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addFromNotComponentProperty(Property property, String accessType, Audited allClassAudited) {
final PropertyAuditingData propertyData = new PropertyAuditingData();
final boolean isAudited = fillPropertyData( property, propertyData, accessType, allClassAudited );
if ( isAudited ) {
// Now we know t... | Checks if a property is audited and if yes, fills all of its data.
@param memberDetails Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | addFromNotComponentProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private boolean fillPropertyData(
Property property,
PropertyAuditingData propertyData,
String accessType,
Audited allClassAudited) {
final String propertyName = propertyNamePrefix + property.getName();
final String modifiedFlagsSuffix = metadataBuildingContext.getConfiguration().getModifiedFlagsSuffix... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | fillPropertyData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void validateLobMappingSupport(MemberDetails memberDetails) {
// HHH-9834 - Sanity check
try {
if ( memberDetails.hasDirectAnnotationUsage( ElementCollection.class ) ) {
if ( memberDetails.hasDirectAnnotationUsage( Lob.class ) ) {
if ( !memberDetails.getType().isImplementor( Map.class ) ) {
... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | validateLobMappingSupport | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean checkAudited(
MemberDetails memberDetails,
PropertyAuditingData propertyData, String propertyName,
Audited allClassAudited, String modifiedFlagSuffix) {
// Checking if this property is explicitly audited or if all properties are.
Audited aud = ( memberDetails.hasDirectAnnotationUsage( Aud... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | checkAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean checkAudited(
Property property,
PropertyAuditingData propertyData, String propertyName,
Audited allClassAudited, String modifiedFlagSuffix) {
// Checking if this property is explicitly audited or if all properties are.
if ( allClassAudited != null ) {
propertyData.setRelationTargetAud... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | checkAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean checkUsingModifiedFlag(Audited aud) {
// HHH-10468
if ( metadataBuildingContext.getConfiguration().hasSettingForUseModifiedFlag() ) {
// HHH-10468
// Modify behavior so that if the global setting has been set by user properties, then
// the audit behavior should be a disjunction between t... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | checkUsingModifiedFlag | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void setPropertyRelationMappedBy(MemberDetails memberDetails, PropertyAuditingData propertyData) {
final OneToMany oneToMany = memberDetails.getDirectAnnotationUsage( OneToMany.class );
if ( oneToMany != null && StringHelper.isNotEmpty( oneToMany.mappedBy() ) ) {
propertyData.setRelationMappedBy( oneToMa... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | setPropertyRelationMappedBy | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void setPropertyAuditMappedBy(MemberDetails memberDetails, PropertyAuditingData propertyData) {
final AuditMappedBy auditMappedBy = memberDetails.getDirectAnnotationUsage( AuditMappedBy.class );
if ( auditMappedBy != null ) {
propertyData.setAuditMappedBy( auditMappedBy.mappedBy() );
if ( StringHelper... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | setPropertyAuditMappedBy | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertyMapKey(MemberDetails memberDetails, PropertyAuditingData propertyData) {
final MapKey mapKey = memberDetails.getDirectAnnotationUsage( MapKey.class );
if ( mapKey != null ) {
propertyData.setMapKey( mapKey.name() );
}
else {
final MapKeyEnumerated mapKeyEnumerated = memberDetails.g... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | addPropertyMapKey | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertyJoinTables(MemberDetails memberDetails, PropertyAuditingData propertyData) {
// The AuditJoinTable annotation source will follow the following priority rules
// 1. Use the override if one is specified
// 2. Use the site annotation if one is specified
// 3. Use the default if neither a... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | addPropertyJoinTables | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertyCollectionAuditTable(MemberDetails memberDetails, PropertyAuditingData propertyAuditingData) {
final CollectionAuditTable collectionAuditTableAnn = memberDetails.getDirectAnnotationUsage( CollectionAuditTable.class );
if ( collectionAuditTableAnn != null ) {
propertyAuditingData.setCollec... | Checks if a property is audited and if yes, fills all of its data.
@param property Property to check.
@param propertyData Property data, on which to set this property's modification store.
@param accessType Access type for the property.
@return False if this property is not audited. | addPropertyCollectionAuditTable | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private void addPropertyAuditingOverrides(MemberDetails memberDetails, PropertyAuditingData propertyData) {
final AuditOverride annotationOverride = memberDetails.getDirectAnnotationUsage( AuditOverride.class );
if ( annotationOverride != null ) {
propertyData.addAuditingOverride( annotationOverride );
}
fin... | Add the {@link AuditOverride} annotations.
@param memberDetails the property being processed
@param propertyData the Envers auditing data for this property | addPropertyAuditingOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private boolean processPropertyAuditingOverrides(MemberDetails memberDetails, PropertyAuditingData propertyData) {
// Only components register audit overrides, classes will have no entries.
for ( AuditOverrideData override : auditedPropertiesHolder.getAuditingOverrides() ) {
if ( memberDetails.resolveAttributeNa... | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | processPropertyAuditingOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private boolean processPropertyAuditingOverrides(Property property, PropertyAuditingData propertyData) {
// Only components register audit overrides, classes will have no entries.
for ( AuditOverrideData override : auditedPropertiesHolder.getAuditingOverrides() ) {
if ( property.getName().equals( override.getNam... | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | processPropertyAuditingOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean isOverriddenNotAudited(MemberDetails memberDetails) {
return overriddenNotAuditedProperties.contains( memberDetails );
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | isOverriddenNotAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean isOverriddenNotAudited(ClassDetails classDetails) {
return overriddenNotAuditedClasses.contains( classDetails );
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | isOverriddenNotAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean isOverriddenAudited(MemberDetails memberDetails) {
return overriddenAuditedProperties.contains( memberDetails );
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | isOverriddenAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
protected boolean isOverriddenAudited(ClassDetails classDetails) {
return overriddenAuditedClasses.contains( classDetails );
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | isOverriddenAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
private RelationTargetNotFoundAction getRelationNotFoundAction(MemberDetails memberDetails, Audited classAudited) {
final Audited propertyAudited = memberDetails.getDirectAnnotationUsage( Audited.class );
// class isn't annotated, check property
if ( classAudited == null ) {
if ( propertyAudited == null ) {
... | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | getRelationNotFoundAction | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public RelationTargetAuditMode targetAuditMode() {
return RelationTargetAuditMode.AUDITED;
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | targetAuditMode | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public RelationTargetNotFoundAction targetNotFoundAction() {
return RelationTargetNotFoundAction.DEFAULT;
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | targetNotFoundAction | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public Class[] auditParents() {
return new Class[0];
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | auditParents | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public boolean withModifiedFlag() {
return false;
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | withModifiedFlag | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public String modifiedColumnName() {
return "";
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | modifiedColumnName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
@Override
public Class<? extends Annotation> annotationType() {
return this.getClass();
} | Process the {@link AuditOverride} annotations for this property.
@param memberDetails the property for which the {@link AuditOverride}
annotations are being processed
@param propertyData the Envers auditing data for this property
@return {@code false} if isAudited() of the override annotation was set to | annotationType | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java | Apache-2.0 |
public String getName() {
return name;
} | Creates a data descriptor that uses default values | getName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
public String getCatalog() {
return catalog;
} | Creates a data descriptor that uses default values | getCatalog | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
public String getSchema() {
return schema;
} | Creates a data descriptor that uses default values | getSchema | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
public Collection<String> getInverseJoinColumnNames() {
return Collections.unmodifiableCollection( inverseJoinColumnNames );
} | Creates a data descriptor that uses default values | getInverseJoinColumnNames | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
public ColumnNameIterator getInverseJoinColumnNamesIterator() {
final Iterator<String> iterator = inverseJoinColumnNames.iterator();
return new ColumnNameIterator() {
@Override
public boolean hasNext() {
return iterator.hasNext();
}
@Override
public String next() {
return iterator.next();
... | Creates a data descriptor that uses default values | getInverseJoinColumnNamesIterator | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
@Override
public boolean hasNext() {
return iterator.hasNext();
} | Creates a data descriptor that uses default values | hasNext | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
@Override
public String next() {
return iterator.next();
} | Creates a data descriptor that uses default values | next | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditJoinTableData.java | Apache-2.0 |
public String getName() {
return name;
} | A boot-time descriptor that represents a {@link AuditOverride} annotation.
@author Chris Cranford | getName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | Apache-2.0 |
public boolean isAudited() {
return audited;
} | A boot-time descriptor that represents a {@link AuditOverride} annotation.
@author Chris Cranford | isAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | Apache-2.0 |
public Class<?> getForClass() {
return forClass;
} | A boot-time descriptor that represents a {@link AuditOverride} annotation.
@author Chris Cranford | getForClass | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | Apache-2.0 |
public AuditJoinTableData getAuditJoinTableData() {
return auditJoinTableData;
} | A boot-time descriptor that represents a {@link AuditOverride} annotation.
@author Chris Cranford | getAuditJoinTableData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditOverrideData.java | Apache-2.0 |
@Override
public boolean isEmpty() {
return properties.isEmpty();
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | isEmpty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
@Override
public void addPropertyAuditingData(String propertyName, PropertyAuditingData auditingData) {
properties.put( propertyName, auditingData );
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | addPropertyAuditingData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
@Override
public PropertyAuditingData getPropertyAuditingData(String propertyName) {
return properties.get( propertyName );
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getPropertyAuditingData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
@Override
public List<AuditOverrideData> getAuditingOverrides() {
return Collections.emptyList();
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getAuditingOverrides | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public PersistentClass getPersistentClass() {
return persistentClass;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getPersistentClass | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public String getEntityName() {
return persistentClass.getEntityName();
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getEntityName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public Iterable<String> getPropertyNames() {
return properties.keySet();
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getPropertyNames | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public Map<String, String> getSecondaryTableDictionary() {
return secondaryTableDictionary;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getSecondaryTableDictionary | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public AuditTable getAuditTable() {
return auditTable;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getAuditTable | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public void setAuditTable(AuditTable auditTable) {
this.auditTable = auditTable;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | setAuditTable | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public void setDefaultAudited(boolean defaultAudited) {
this.defaultAudited = defaultAudited;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | setDefaultAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public boolean isAudited() {
return defaultAudited || properties.size() > 0;
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | isAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
@Override
public boolean contains(String propertyName) {
return properties.containsKey( propertyName );
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | contains | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public Iterable<String> getNonSyntheticPropertyNames() {
return properties.entrySet().stream()
.filter( e -> !e.getValue().isSynthetic() )
.map( Map.Entry::getKey )
.collect( Collectors.toList() );
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getNonSyntheticPropertyNames | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
public Iterable<PropertyAuditingData> getSyntheticProperties() {
return properties.values().stream()
.filter( PropertyAuditingData::isSynthetic )
.collect( Collectors.toList() );
} | True if the class is audited globally (this helps to cover the cases when there are no fields in the class,
but it's still audited). | getSyntheticProperties | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ClassAuditingData.java | Apache-2.0 |
@Override
protected boolean isClassHierarchyTraversalNeeded(Audited allClassAudited) {
// we always traverse the hierarchy for components
return true;
} | Reads the audited properties for components.
@author Hern&aacut;n Chanfreau
@author Michal Skowronek (mskowr at o2 dot pl)
@author Chris Cranford | isClassHierarchyTraversalNeeded | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditedPropertiesReader.java | Apache-2.0 |
@Override
protected boolean checkAudited(
MemberDetails memberDetails,
PropertyAuditingData propertyData,
String propertyName,
Audited allClassAudited,
String modifiedFlagSuffix) {
// Checking if this property is explicitly audited or if all properties are.
final Audited aud = memberDetails.getDirec... | Reads the audited properties for components.
@author Hern&aacut;n Chanfreau
@author Michal Skowronek (mskowr at o2 dot pl)
@author Chris Cranford | checkAudited | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditedPropertiesReader.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditedPropertiesReader.java | Apache-2.0 |
@Override
public boolean isEmpty() {
return properties.isEmpty();
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | isEmpty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
@Override
public void addPropertyAuditingData(String propertyName, PropertyAuditingData auditingData) {
properties.put( propertyName, auditingData );
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | addPropertyAuditingData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
@Override
public PropertyAuditingData getPropertyAuditingData(String propertyName) {
return properties.get( propertyName );
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | getPropertyAuditingData | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
@Override
public boolean contains(String propertyName) {
return properties.containsKey( propertyName );
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | contains | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
public Set<String> getPropertyNames() {
return properties.keySet();
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | getPropertyNames | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
public Iterable<String> getNonSyntheticPropertyNames() {
return properties.entrySet().stream()
.filter( e -> !e.getValue().isSynthetic() )
.map( Map.Entry::getKey )
.collect( Collectors.toList() );
} | Audit mapping meta-data for component.
@author Adam Warski (adam at warski dot org)
@author Hern&aacut;n Chanfreau
@author Chris Cranford | getNonSyntheticPropertyNames | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditingData.java | Apache-2.0 |
static PersistentPropertiesSource forClass(PersistentClass persistentClass, ClassDetails classDetails) {
return new PersistentPropertiesSource() {
@Override
public Iterator<Property> getPropertyIterator() {
return persistentClass.getProperties().iterator();
}
@Override
public Property getProperty(... | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | forClass | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public Iterator<Property> getPropertyIterator() {
return persistentClass.getProperties().iterator();
} | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | getPropertyIterator | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public Property getProperty(String propertyName) {
return persistentClass.getProperty( propertyName );
} | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | getProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public ClassDetails getClassDetails() {
return classDetails;
} | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | getClassDetails | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public boolean isDynamicComponent() {
return false;
} | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | isDynamicComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public boolean hasCompositeUserType() {
return false;
} | Get a persistent properties source for a persistent class.
@param persistentClass the persistent class
@param classDetails the class details
@return the properties source | hasCompositeUserType | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, Component component, boolean dynamic) {
try {
final ClassDetails classDetails = context.getClassDetailsRegistry()
.resolveClassDetails( component.getComponentClassName() );
return forComponent( component, classDetails, dy... | Get a persistent properties source for a component that needs its class resolved.
@param context the metadata building context
@param component the component
@param dynamic whether the component is dynamic or not
@return the properties source | forComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, Component component) {
return forComponent( context, component, false );
} | Get a persistent properties source for a component that needs its class resolved.
@param context the metadata building context
@param component the component
@param dynamic whether the component is dynamic or not
@return the properties source | forComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
static PersistentPropertiesSource forComponent(Component component, ClassDetails classDetails, boolean dynamic) {
return new PersistentPropertiesSource() {
@Override
public Iterator<Property> getPropertyIterator() {
return component.getProperties().iterator();
}
@Override
public Property getProper... | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | forComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public Iterator<Property> getPropertyIterator() {
return component.getProperties().iterator();
} | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | getPropertyIterator | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public Property getProperty(String propertyName) {
return component.getProperty( propertyName );
} | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | getProperty | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public ClassDetails getClassDetails() {
return classDetails;
} | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | getClassDetails | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public boolean isDynamicComponent() {
return dynamic;
} | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | isDynamicComponent | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
@Override
public boolean hasCompositeUserType() {
return component.getTypeName() != null;
} | Get a persistent properties source for a component with its class already resolved.
@param component the component
@param classDetails the class details
@param dynamic whether the component is dynamic or not
@return the properties source | hasCompositeUserType | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java | Apache-2.0 |
public String getName() {
return name;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | getName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public void setName(String name) {
this.name = name;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | setName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public String getBeanName() {
return beanName;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | getBeanName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public void setBeanName(String beanName) {
this.beanName = beanName;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | setBeanName | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public String getMapKey() {
return mapKey;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | getMapKey | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public void setMapKey(String mapKey) {
this.mapKey = mapKey;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | setMapKey | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public EnumType getMapKeyEnumType() {
return mapKeyEnumType;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | getMapKeyEnumType | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public void setMapKeyEnumType(EnumType mapKeyEnumType) {
this.mapKeyEnumType = mapKeyEnumType;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | setMapKeyEnumType | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
public AuditJoinTableData getJoinTable() {
return joinTable;
} | Create a property with the default {@link RelationTargetAuditMode} mode of AUDITED.
@param name the property name
@param accessType the access type
@param relationTargetNotFoundAction the relation target not found action
@param forceInsertable whether the property is forced insertable
@param synthetic whether the prop... | getJoinTable | java | hibernate/hibernate-orm | hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.