
fr.landel.utils.model.AbstractEmbeddableEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-model Show documentation
Show all versions of utils-model Show documentation
Model utils (Entity, DTO, Query, Native SQL, Dialect)
The newest version!
/*
* #%L
* utils-model
* %%
* Copyright (C) 2016 Gilandel
* %%
* Authors: Gilles Landel
* URL: https://github.com/Gilandel
*
* This file is under Apache License, version 2.0 (2004).
* #L%
*/
package fr.landel.utils.model;
import java.io.Serializable;
import javax.persistence.Transient;
/**
* Abstract embeddable entity.
*
* @since 13 juil. 2015
* @author Gilles
*
* @param
* The embeddable.
* @param
* The first join entity.
* @param
* The first foreign key type.
* @param
* The second join entity.
* @param
* The second foreign key type.
*/
public abstract class AbstractEmbeddableEntity<
/**/E extends AbstractEmbeddableEntity,
/**/E1 extends AbstractEntity,
/**/K1 extends Serializable & Comparable,
/**/E2 extends AbstractEntity,
/**/K2 extends Serializable & Comparable> implements Serializable, Comparable {
/**
* serialVersionUID
*/
private static final long serialVersionUID = -2860006982766576382L;
/**
* @return The first entity
*/
@Transient
public abstract E1 getEntity1();
/**
* @return The second entity
*/
@Transient
public abstract E2 getEntity2();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy