Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-12327 - Remove the Envers dependency on Javassist.
- Loading branch information
Showing
13 changed files
with
211 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...s/src/main/java/org/hibernate/envers/internal/entities/mapper/AbstractPropertyMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.envers.internal.entities.mapper; | ||
|
||
/** | ||
* Abstract implementation of a {@link PropertyMapper}. | ||
* | ||
* @author Chris Cranford | ||
*/ | ||
public abstract class AbstractPropertyMapper implements PropertyMapper { | ||
private boolean map; | ||
|
||
@Override | ||
public void markAsDynamicComponentMap() { | ||
this.map = true; | ||
} | ||
|
||
@Override | ||
public boolean isDynamicComponentMap() { | ||
return map; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ain/java/org/hibernate/envers/internal/entities/mapper/DynamicComponentMapperSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.envers.internal.entities.mapper; | ||
|
||
/** | ||
* Contract for {@link PropertyMapper} implementations to expose whether they should be included | ||
* as a wrapper for a {@code <dynamic-component/>} mapping. | ||
* | ||
* In this mapping, values are actually stored as a key-value pair in a HashMap rather than | ||
* them being treated as java-bean values using a setter method. | ||
* | ||
* @author Chris Cranford | ||
*/ | ||
public interface DynamicComponentMapperSupport { | ||
/** | ||
* Mark the property mapper that it wraps a dynamic-component. | ||
*/ | ||
void markAsDynamicComponentMap(); | ||
|
||
/** | ||
* Returns whether the property mapper wraps a dynamic-component. | ||
*/ | ||
boolean isDynamicComponentMap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.