com.emarsys.ecommon.util
Interface Identifiable

Type Parameters:
T - Should have the @Entity attribute

public interface Identifiable

Used to mark an Entity object as exportable. Right now, we have to have an identifier, which is usually a Long value in our system.

Important limitations

This will generally not work with inheritance. This is rarely required in our system, and can be implemented later.

Future possibilites

We may want to use a different mechanism for marking something as an exportable entity, like attributes. The current exporter could just infer that we have an ID that is a long by searching for the @Id attribute.

Author:
Tristan Juricek

Method Summary
 java.lang.Long getId()
          Returns the Hibernate identity of the object.
 

Method Detail

getId

java.lang.Long getId()
Returns the Hibernate identity of the object. This is required of nearly



Copyright © 2010 emarsys AG. All Rights Reserved.