Hi Marty

I had the same problem.  I'm guessing your eclipse build hasn't imported all
the libraries in the maven repository.  It's not 100% clear in the tutorial
where the maven repository is if you're a windows user.
http://appfuse.org/display/APF/Eclipse
The ~ equates to your user home, so the maven repository will probably in
somewhere like:
C:\Documents and Settings\<username>\.m2\repository

Once you set the class path variable M2_REPO to the above then you should
find everything detailed in the tutorials resolve ok.

Cheers
Aled

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 May 2007 14:18
To: [email protected]
Subject: [appfuse-user] RE:[appfuse-users] Nooby Q

Hi Aled,

Thanks for the assist.

I have the imports but on closer examination it seems that eclipse cannot
resolve them. Could this be a problem with the src folder setup?

Are the javax.persistence classes part of the jdk?

eclipse seems to also have a problem reolving org.appfuse.

I'm sure I can sort the hashCode stuff but am at a little bit of a loss as
to the Annotations.


Regards
Marty



Are you importing javax.persistence.Entity in your class?
Same goes for Id and Generated value.  They are part of javax.persistence.
If importing this doesn't seem to work, make sure you're using the maven
repository correctly.

You don't have to extend BaseObject, but if you do you must override
method hashCode().  There are plugins for eclipse that can generate this
for you, see the tutorial.

Aled

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 May 2007 13:53
To: [email protected]
Subject: [appfuse-user] Nooby Q

I'm having a play around with Appfuse 2 but have run into a problem.

When I try to compile I get :

.
.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[6,1]
cannot find symbol
symbol: class Entity
@Entity

C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[27,3]
cannot find symbol
symbol  : class Id
location: class com.rave.chester.model.Move

C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[27,7]
cannot find symbol
symbol  : class GeneratedValue
location: class com.rave.chester.model.Move

C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[7,7]
com.rave.chester.model.Move is not abstract and does not override abstract
method hashCode() in org.appfuse.model.BaseObject

C:\Project\Chester\src\main\java\com\rave\chester\model\Game.java:[15,7]
com.rave.chester.model.Game is not abstract and does not override abstract
method hashCode() in org.appfuse.model.BaseObject


Now I'm assuming that this is something to do with these new fangled
Annotations. I'm sure I can work out the hashCode stuff but have not idea
where to start with the other error.

Any idea of what I need to do so that these do their thing properly?

I'm running the 1.5 jdk (another first for me).


Regards
Marty



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to