net.sf.hibernate
Interface PersistentEnum


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()
           
 

Method Detail

toInt

public int toInt()