All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.gc.aafc.dina.entity.DinaEntity Maven / Gradle / Ivy

There is a newer version: 0.132
Show newest version
package ca.gc.aafc.dina.entity;

import java.time.OffsetDateTime;
import java.util.UUID;

/**
 * Represents a DINA entity with an id and uuid field. The id is usually the Primary Key
 * and auto-generated while the uuid is the natural key, a unique key that is publicly visible.
 */
public interface DinaEntity {

  Integer getId();

  UUID getUuid();

  /**
   * The group represents the group owning the entity. group is optional and null
   * is return if an entity doesn't support it.
   *
   * @return the name of the group or null
   */
  default String getGroup() {
    return null;
  }

    String getCreatedBy();

    OffsetDateTime getCreatedOn();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy