MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
P0rridge
Post subject: Scaffolding both Security and CRUD - resolution of conflict?  PostPosted: Mar 22, 2011 - 07:11 AM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

I would like to
a) add a database based security layer to my app
b) Update the resultant User table with some of my own attributes and relationships
c) CRUD Scaffold that table into my app

I did this by running the security scaffolding wizard, which generated the User table, then updated the table with my attributes and relationships. Then re-ran both security and CRUD scaffolding.

The problem is that packagename-generated-dao-context.xml is now in error, although with no error details. The console error when running the app says "Annotation-specified bean name "UsersDAO" conflicts with non-compatible bean defintion of same name and class.

It looks like the problem is that there are now 2 UsersDAOImpl.

Suggested approach anyone?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
jkennedy
Post subject: RE: Scaffolding both Security and CRUD - resolution of confl  PostPosted: Mar 30, 2011 - 02:27 PM



Joined: Jan 27, 2010
Posts: 245

I think the approach you used should generate 95% of what you need.

You may need to remove the extra DAO and do some other code cleanup since you are rerunning scaffolding on the same entity in two different passes, once to get the User entity from the Security scaffolding and then again from the CRUD scaffolding.

Thanks,
Jack
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits