Hello, I Have Faced This Problem Too But I've Solved The Problem As Follow:
1- You have to download the Persistence Package If You Don't have it and include it in your lib.
2- annotation is changed in new trails and hibernate, so you have to modify the recipe.java code as follow:
package org.trails.recipe;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.*;
@Entity
public class Recipe
{
private Integer id;
private String title;
private String description;
private Date date;
@Id @GeneratedValue
public Integer getId()
{
return id;
}
....
the rest will be the same... and that's all...
A.H.S |