Appfuse – Extending your classes

I had extended my Event class to include references to other objects. I also created @OneToOne annotations of them.
All of a sudden the tests wouldn’t run.
Well the problem lay in the sample data that is loaded into the table during the tests. I was referencing the appfuse User class. During the autogeneration of my Event class, it autogenerates three records into ./tree/src/test/resources/sample-data.xml . However, the original Appfuse where you did the quickstart from the main site, only outputs two User records.
So I added a third User record and everything fell into place and started working again.

Peace out.

Share
This entry was posted in Miscellaneous Apps and Services and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>