I should include that I'm using the Spring Cartridge and version 3.0 of the 
code. 



No, My Category class does not extend another class. 



Copy method meaning a create method that is supposed to take a Category and 
copy all of it's attributes to the new Category. After looking at the 
CategoryDAOBase.java I realize that the create method doesn't copy the 
Category, but treats it as a value object/non-persisted object to persist be 
persisted.



When I run Maven I get the following error:



CategoryDao.java:89: 

create(Category) is already defined in CategoryDao

    public Category create(



When I look in CategoryDAO.java I see two create methods:



    /**

     * Creates an instance of Category and adds it to the 
persistent store.

     */

    public Category create(Category category);



and:



    /**

&nbsp; &nbsp; &nbsp;* <p>

&nbsp; &nbsp; &nbsp;*&nbsp; Creates a new <code>Category</code>

&nbsp; &nbsp; &nbsp;*&nbsp; instance from only <strong>required</strong> 
properties &#40;attributes

&nbsp; &nbsp; &nbsp;*&nbsp; and association ends&#41; and adds it to the 
persistent store.

&nbsp; &nbsp; &nbsp;* </p>

&nbsp; &nbsp; &nbsp;*/

&nbsp; &nbsp; public Category create&#40;Category ParentCategory&#41;;



(Package names taken out to protect the innocent)



I get this type of error four times. What am I doing wrong here?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1114#1114
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to