Skip to content

Instantly share code, notes, and snippets.

@riferrei
Created November 24, 2008 16:47
Show Gist options
  • Save riferrei/28523 to your computer and use it in GitHub Desktop.
Save riferrei/28523 to your computer and use it in GitHub Desktop.
@Entity
@Table(name="tab_cliente")
@SuppressWarnings("serial")
@EntityListeners(CipherEntityListener.class)
public class Cliente implements Serializable {
@Id
@Column(name="cod_cliente")
@GeneratedValue(strategy=GenerationType.IDENTITY)
private int codigo;
@Column(name="nome_cliente", length=100)
private String nome;
@Column(name="cpf_cliente", length=20)
private String cpf;
@Column(name="data_nasc")
@Temporal(TemporalType.DATE)
private Date dataNascimento;
@CipherKey
private String privateKey;
@CipherData
private String recordData;
private boolean casado;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment