-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
788 additions
and
511 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...els-orm/src/main/java/org/hibernate/models/orm/internal/GenericGeneratorRegistration.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,35 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.models.orm.internal; | ||
|
||
import org.hibernate.annotations.GenericGenerator; | ||
import org.hibernate.models.source.spi.AnnotationUsage; | ||
|
||
/** | ||
* Global registration of a generic generator | ||
* | ||
* @see org.hibernate.models.orm.spi.Processor.Options#areGeneratorsGlobal() | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class GenericGeneratorRegistration { | ||
private final String name; | ||
private final AnnotationUsage<GenericGenerator> configuration; | ||
|
||
public GenericGeneratorRegistration(String name, AnnotationUsage<GenericGenerator> configuration) { | ||
this.name = name; | ||
this.configuration = configuration; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public AnnotationUsage<GenericGenerator> getConfiguration() { | ||
return configuration; | ||
} | ||
} |
Oops, something went wrong.