Did you create your Eclipse project files with "mvn eclipse:eclipse". If so, you'll need to make sure you have a M2_REPO classpath variable setup.
Matt On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
