net.sf.hibernate
Interface PersistentEnum


Deprecated. Support for PersistentEnums will be removed in 2.2

public interface PersistentEnum

Implementors of PersistentEnum are enumerated types persisted to the database as SMALLINTs. As well as implementing toInt(), a PersistentEnum must also provide a static method with the signature:

public static PersistentEnum fromInt(int i)

Author:
Gavin King

Method Summary
 int toInt()
          Deprecated.  
 

Method Detail

toInt

public int toInt()
Deprecated.