pm.pride.MappedObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pride Show documentation
Show all versions of pride Show documentation
World's smallest O/R mapper for Java
/*******************************************************************************
* 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; }
}