What version of AppFuse are you using? There's some things we did in M4 that made this possible. The code for the tutorial doesn't have a new class registered in persistence.xml and it seems to work fine. There's a URL on the tutorial to check it out from SVN if you'd like to compare.
Matt On 4/10/07, citynomad <[EMAIL PROTECTED]> wrote:
Just something I noticed while working through the Persistence and JPA tutorials: When I created a new model class, annotated it and ran "mvn compile hibernate3:hbm2ddl", it did not find my class and did not create a table for it. Only when I added the class name to persistence.xml did everything work OK, despite the comment in persistence.xml saying that adding classes there is NOT required. I'm new to JPA, so I'm not sure if this is something that should indeed be working without entries in persistence.xml, or if it shouldn't (in which case that comment should probably be removed.) Eugene -- View this message in context: http://www.nabble.com/JPA%3A-Adding-classes-to-persistence.xml-NOT-optional-tf3556464s2369.html#a9930565 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
