Hi after post my question, I found the answer, just put @Transient, the answer was found here:
http://www.guj.com.br/posts/list/29386.java
abstract wrote:
Hi I have a entity mapped with annotations like this:
@Entity(name="Funcionario")
@Table(name="Funcionario")
public class Login implements Serializable {
private int id;
private String name;
private String login;
private String allusers;
.......
getters and setters of: id, name, login
But I want to implement the code in method getAllUsers(), without setter needs to implement setter method like setAllUsers(...), how can I use annotation to ignore, this bean "contract", I've got these errors:
Caused by: org.hibernate.PropertyNotFoundException: Could not find a setter for property allusers in class br.com.tests.Login