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

org.fuchss.objectcasket.objectpacker.impl.M2OInfo Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.20.17
Show newest version
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