This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld { | |
public static void main(String args[]) { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface SampleService { | |
public LoanRequest createRequest(LoadRequest loanRequest); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retention(value=RetentionPolicy.RUNTIME) | |
@Target(value=ElementType.FIELD) | |
public @interface CipherKey { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retention(value=RetentionPolicy.RUNTIME) | |
@Target(value=ElementType.FIELD) | |
public @interface CipherData { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retention(value=RetentionPolicy.RUNTIME) | |
@Target(value=ElementType.FIELD) | |
public @interface CipherKey { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retention(value=RetentionPolicy.RUNTIME) | |
@Target(value=ElementType.FIELD) | |
public @interface CipherData { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CipherEntityListener { | |
@PrePersist @PreUpdate | |
@SuppressWarnings("unchecked") | |
public void cipherEntityUsingMD5(Object entity) throws Exception { | |
CipherHelper cipherHelper = null; | |
String privateKey = null; | |
String recordData = null; | |
StringBuffer sb = null; | |
Class classType = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xxx.yyy.zzz; | |
import java.io.Serializable; | |
@SuppressWarnings("serial") | |
public class PedidoMultiplicacao implements Serializable { | |
private int a; | |
private int b; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xxx.yyy.zzz; | |
import java.io.Serializable; | |
@SuppressWarnings("serial") | |
public class ResultadoMultiplicacao implements Serializable { | |
private int valor; | |
public int getValor() { |
OlderNewer