I´ve got a bean containing some fields, and two of them are not intended to be mapped by hibernate (errorStatus and operationResultMessage). How do I tell Hibernate (via annotat
Use the @Transient annotation.
/* snip... */ @Transient private Boolean errorStatus; @Transient private String operationResultMessage;
Obviously, if you're annotating the getters/setters rather than the fields, that's where the @Transient annotation would go.
@Transient