I am using hibernate 4.1.9. My code is
@Transient
private String ldapIdTemp;
package is
import javax.persistence.Transient;
Still in hibernate query, it is not working and putting the attribute in the query.
part of query snippet (assetasset0_.ldapIdTemp as ldapIdTemp16_0_, )
I am not sure what I am doing wrong.
java.beans.Transient
when the method didn't need the annotation because its name did not look like a getter or setter. His code ran, but when I used the same annotation on a new method that looked like a getter, the code failed. I switched tojavax.persistence.Transient
and the code ran. – Saeger