Hi there, I found a post on the JBoss forums in the "Database, Persistence, JBoss CMP" forum, topic "duplicate column names - revisited" and following.
http://www.jboss.org/forums/thread.jsp?forum=46&thread=11566&message=2327625&q=duplicate+columns+created#2327625 There they describe that JBoss tries to create 2 fields with the same name for the foreign key column, and that you only need to declare the field as CMR to solve this problem. Thanks for the merge file stuff, terminology confused me indeed. This solution is a lot cleaner than putting the file reading code into the plugin like it was in the patch. Leander ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek No, I will not fix your computer. http://thinkgeek.com/sf _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user