sai-pullabhotla
7/21/2016 - 8:32 PM

Catatumbo - Identifier Annotation - Application Specified ID

Catatumbo - Identifier Annotation - Application Specified ID

import com.jmethods.catatumbo.Entity;
import com.jmethods.catatumbo.Identifier;

@Entity
public class Person {
  
    @Identifier(autoGenerated=false)
    private String emailAddress;
    
    //Other members of Person go here. For example, firstName, lastName and 
    //their corresponding accessor and mutator methods. 
}