Skip to content

Commit

Permalink
Global id generator registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Oct 18, 2023
1 parent b89d9b9 commit a859344
Show file tree
Hide file tree
Showing 13 changed files with 788 additions and 511 deletions.
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;
}
}
Loading

0 comments on commit a859344

Please sign in to comment.