annotate ValueGeneration impls in annotation package @Internal

This commit is contained in:
Gavin 2022-11-28 22:52:52 +01:00
parent 366a89ae71
commit cc9ecfb94d
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
*/
package org.hibernate.annotations;
import org.hibernate.Internal;
import org.hibernate.dialect.Dialect;
import org.hibernate.tuple.AnnotationValueGeneration;
import org.hibernate.tuple.GenerationTiming;
@ -20,6 +21,7 @@ import org.hibernate.tuple.ValueGenerator;
*
* @author Steve Ebersole
*/
@Internal
public class CurrentTimestampGeneration implements AnnotationValueGeneration<CurrentTimestamp> {
private GenerationTiming timing;
private ValueGenerator<?> generator;

View File

@ -7,6 +7,7 @@
package org.hibernate.annotations;
import org.hibernate.AssertionFailure;
import org.hibernate.Internal;
import org.hibernate.Session;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.spi.JdbcCoordinator;
@ -40,6 +41,7 @@ import static org.hibernate.tuple.GenerationTiming.ALWAYS;
* @deprecated because {@link Source} is generated, though this implementation is instructive
*/
@Deprecated(since = "6.2")
@Internal
public class SourceGeneration implements AnnotationValueGeneration<Source>, ValueGenerator<Object> {
private static final CoreMessageLogger log = Logger.getMessageLogger(