i write pojo that map to mysql table with hibernate,but i do not want to bind a pojo attribute to mysql table field. that code is blow:
public class User{
private long id;
private String name;
private String donotBindAttribute;
set get......
}
how to do not bind attribue "donotBindAttribute" to mysql field who can help me.
use as follows -
@Transient
private String donotBindAttribute;