Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dali-dev] Embeddable cannot have persistent id.

Hello,

I´m getting an error on my entity, but I don´t know what it means. The
error is: "Embeddable cannot have persistent id"

My entity is:

@Entity
@Name("useCase")
public class UseCase extends GenericModel {

	public UseCase() {
		// default constructor
	}

	public UseCase(Long idParam) {
		super(idParam);
	}
	
	/**
	 * The name of the Use Case.
	 */
	@Length(max = 100)
	@NotNull
	private String name;
	
	@OneToMany(cascade = CascadeType.ALL, mappedBy="useCase")
	private List<Step> steps;

	public String getName() {
		return name;
	}

	public void setName(String nome) {
		this.name = nome;
	}

	public List<Step> getSteps() {
		return steps;
	}

	public void setSteps(List<Step> steps) {
		this.steps = steps;
	}
}

Anyone know how to solve this? I´m using Dali 0.5.

thanks in advance,
Fabrício Lemos


Back to the top