In my application, I have enable the jasypt encryption with @Type annotation. But when I need to deploy the application without any encryption then I have to change the attribute of the @Type annotation as following manner. Currently I'm proceed this operation manually. Is there any way to make this configurable (according to configuration value pickup the attribute of the @Type annotation)? Thanks.
@Entity
@Table
public class Data {
@Id
private Integer id;
@Type(type = "encryptedString") // Need to enable for Encryption
@Type(type = "org.hibernate.type.TextType") // Need to enable for Non Encryption
private String data;
}