The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 RAD That Ain't Bad: Domain-Driven Development with Trails
Subject:  Soultion For: help please! how to resolve this compile error?
Date:  2007-01-30 12:25:23
From:  ahmedlondon
Response to: help please! how to resolve this compile error?


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

 Feed java.net RSS Feeds