Hi!

You have to exclude AppFuse Data Common Package in your pom.xml. Then add in
to your poroject User and Role pojos at appfuse namespace (as described in
http://www.appfuse.org/display/APF/AppFuse+Core+Classes)

Try to do  mvn clean compile hibernate3:hbm2ddl and check database for user
table structure. If it does not contains fields defined in User pojo of your
project then AppFuse Data Common Package is not excluded.

What is your version of appfuse, M5?

Regards,
ros



Fan wrote:
> 
> Hey Ros:
> 
> I did add the related Object to both hibernate.cfg.xml and
> applicationContext.xml. But it just does not work
> 
> Or do you mind to show me your hibernate.cfg.xml and
> applicationContext.xml ? I afraid I might do it wrongly
> 
> Is that necessary to exclude the AppFuse Data Common Package ?
> 
> 
> ros wrote:
>> 
>> Hi!
>> 
>> I resolve that by add my Contact object to both hibernate.cfg.xml and
>> applicationContext.xml.
>> 
>> Reffer to http://www.appfuse.org/display/APF/AppFuse+Core+Classes
>> 
>> Hope this helps.
>> 
>> ros
>> 
>> 
>> 
>> Fan wrote:
>>> 
>>> Ros, 
>>> 
>>> What's the fix ? I am facing the same error as you did
>>> 
>>> 
>>> ros wrote:
>>>> 
>>>> Right. Thanks Matt!
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/override-User-code-class-and-link-OneToMany-to-any-other-class-tf3217084s2369.html#a11314005
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to