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

pm.pride.MappedObject Maven / Gradle / Ivy

There is a newer version: 3.4.10
Show newest version
/*******************************************************************************
 * Copyright (c) 2001-2019 The PriDE team
 *******************************************************************************/
package pm.pride;


/**
 * Convenience implementation of {@link DatabaseAdapterMixin}, assuming
 * that the entity to operate on is this object itself. This
 * base class is of interest for hybrid entities containing both
 * the actual data and the mapping information. This may be nice
 * for small projects to keep all related information in one class.
 * However, in larger projects it is recommended to separate the
 * mapping from the value objects as it is intended in base class
 * {@link ObjectAdapter}
 *
 * @author Jan Lessner
 */
abstract public class MappedObject implements DatabaseAdapterMixin {
	@Override
	public Object getEntity() { return this; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy