Class RegistrationEngine

java.lang.Object
org.litebridgedb.orm.engine.RegistrationEngine

public class RegistrationEngine extends Object
  • Constructor Details

  • Method Details

    • register

      public void register(Class<?> dtoClass, Function<RegistrationContext,RegistrationContextTerminal> rc)
      Registers a DTO class along with its associated table specification using the provided registration context function.
      Parameters:
      dtoClass - The class object of the DTO (Data Transfer Object) to be registered.
      rc - A function that takes a RegistrationContext instance to configure the table mapping.
    • register

      public void register(Class<?>... entityClasses)
      Registers annotated entity class(es).

      The annotated entity must be annotated with Table and contain at least one field annotated with Column, OneToMany or ManyToMany.

      Parameters:
      entityClasses - the class(es) of the entity/entities to be registered.
    • register

      public void register(DtoTableSpec... dtoTableSpecs)
      Register a Data Transfer Object (DTO) class(es) with its corresponding table specification(s).

      This method maps the DTO class to a database table and stores the association in the table registry to enable database operations such as insert, update, or query.

      Parameters:
      dtoTableSpecs - One or more DTO-to-table mapping details