org.fuchss.objectcasket.objectpacker.impl.M2OInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-casket Show documentation
Show all versions of object-casket Show documentation
Object Casket is a simple O/R mapper that can be used together with the Java Persistence API (JPA). The aim is to provide a simple solution for small projects to store multi-related
entities in a simple manner.
package org.fuchss.objectcasket.objectpacker.impl;
import jakarta.persistence.*;
@Entity()
@Table(name = "Many@One")
final class M2OInfo {
static final String FIELD_CLIENT_TABLE_NAME = "clientTableName";
static final String FIELD_CLIENT_COLUMN_NAME = "clientColumnName";
static final String COL_CLIENT_TABLE_NAME = "client@TableName";
static final String COL_CLIENT_COLUMN_NAME = "client@ColumnName";
static final String COL_SUPPLIER_TABLE_NAME = "supplier@TableName";
@Id
@GeneratedValue
private Integer id;
@Column(name = COL_CLIENT_TABLE_NAME)
private String clientTableName;
@Column(name = COL_CLIENT_COLUMN_NAME)
private String clientColumnName;
@Column(name = COL_SUPPLIER_TABLE_NAME)
private String supplierTableName;
@SuppressWarnings("unused")
private M2OInfo() {
}
M2OInfo(String clientTableName, String clientColumnName, String supplierTableName) {
this.clientTableName = clientTableName;
this.clientColumnName = clientColumnName;
this.supplierTableName = supplierTableName;
}
String getSupplierTableName() {
return this.supplierTableName;
}
String getClientTableName() {
return this.clientTableName;
}
String getClientColumnName() {
return this.clientColumnName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy