<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Java (JSP) code generation problem in a self many-to-many relationship"]]></title>
		<link>http://forums.visual-paradigm.com/posts/32.html</link>
		<description><![CDATA[Latest messages posted in the topic "Java (JSP) code generation problem in a self many-to-many relationship"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi <br> <br> While generating Java code for a self many-to-many relationship depicted in the attached diagram with parameters shown in the attached screen copy the DBVA code generator fails to distinguish between the two instances of PERSON in the Person_has_lendersProcessor.java. <br> <br> The two generated instances appear with the same name as shown below:<br> <br> import org.orm.PersistentException;<br> /**<br>  * ORM-Persistable Class<br>  */<br> public class Person_has_lendersProcessor {<br> <br>         ...<br> <br>         private int personid;<br> <br>         public void setPersonid(int value) {<br>                 this.personid = value;<br>         }<br> <br>         public int getPersonid() {<br>                 return personid;<br>         }<br> <br>         private int personid;<br> <br>         public void setPersonid(int value) {<br>                 this.personid = value;<br>         }<br> <br>         public int getPersonid() {<br>                 return personid;<br> <br>          ....<br> <br> <br> This leads to the following compilation errors:<br> <br> src/Person_has_lendersProcessor.java:49: personid is already defined in Person_has_lendersProcessor<br>         private int personid;<br>                     ^<br> src/Person_has_lendersProcessor.java:51: setPersonid(int) is already defined in Person_has_lendersProcessor<br>         public void setPersonid(int value) {<br> <br> src/Person_has_lendersProcessor.java:55: getPersonid() is already defined in Person_has_lendersProcessor<br>         public int getPersonid() {<br>                    ^ <br> <br> Advice, comments appreciated.<br> <br> <br> Best regards <br> <br> Mikhail ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19498.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19498.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 16:45:36]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> Thank you for your report. We are now investigating the problem. When there is any news, we'll let you know.<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19499.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19499.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:06:15]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> We were unable to reproduce your problem. Could you send me your project? I suggest you not to post here. You may send to my Email address:<br> <a href="mailto:jick@visual-paradigm.com">jick@visual-paradigm.com</a><br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19502.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19502.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:32:43]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Do you have the JSP Sample checked? <br> <br> If so, could you post your Person_has_lendersProcessor.java. <br> <br> Best regards <br> <br> Mikhail]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19503.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19503.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:38:21]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Note also that the SMART association should be selected. ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19504.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19504.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:39:11]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ The project is just this diagram. Nothing else to send.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19505.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19505.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:40:30]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Dear Mikhail,<br> <br> If sync the ERD to Class Diagram, it should be only 1 class Person with 1 self many-to-many association, which result in generating one jsp file (PersonProcessor) only, and should not generate Person_has_lendersProcessor.java. Our project is attached.<br> <br> Can you send me yours?<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19506.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19506.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 17:49:47]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Try adding an attribute to the person_has_lenders table in your ERD, e.g., a date, as shown in my original diagram. <br> <br> The class diagram and the generated file set will be different then, isn't it?<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19507.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19507.html</link>
				<pubDate><![CDATA[Mon, 8 Oct 2007 18:00:39]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> Thank you for correcting us. The problem has been fixed. Please download the patch release at:<br> <a href="http://files3.visual-paradigm.com/200710/Patch/sp1_20071003u/VP_Suite_Windows_3_1_sp1_20071003u.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200710/Patch/sp1_20071003u/VP_Suite_Windows_3_1_sp1_20071003u.exe</a><br> <br> Please run it, and overwrite the current installation. <br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19521.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19521.html</link>
				<pubDate><![CDATA[Tue, 9 Oct 2007 19:15:48]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Jick, could you also provide a patch for Mac OS. Thank you. <br> <br> Mikhail ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19525.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19525.html</link>
				<pubDate><![CDATA[Tue, 9 Oct 2007 23:38:20]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail, <br> <br> Yes, here you are:<br> <a href="http://files3.visual-paradigm.com/200710/Patch/sp1_20071003u/VP_Suite_MacOSX_3_1_sp1_20071003u.dmg" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200710/Patch/sp1_20071003u/VP_Suite_MacOSX_3_1_sp1_20071003u.dmg</a><br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19531.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19531.html</link>
				<pubDate><![CDATA[Wed, 10 Oct 2007 08:16:29]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Jick <br> <br> Thank you for this fix. There is more to this, however. <br> <br> Have you tried to compile the project after this issue was fixed? <br> <br> Personally, I could not compile it with 22 errors returned. All errors are related to one point:  Methods are defined in the DAO objects of the Person and Person_has_lenders objects while the generated code assumes they are declared in the objects themselves. <br> <br> <br> For example, loadPersonByORMID is declared and implemented in PersonDAO and PersonDAOImpl correspondingly while the generated code attempts to call it via Person  (see below).<br> <br> Since this is just generated code, not a single line was added, I assume the generation procedure needs some more attention.  <br> <br> Could you look into it and advice? Thank you.<br> <br> <br> Best regards <br> <br> Mikhail <br> <br> <br> <br> <br> src/person/PersonProcessor.java:73: cannot find symbol<br> symbol  : method loadPersonByORMID(int)<br> location: class person.Person<br>                                 person.Person _person =person.Person.loadPersonByORMID(getId());<br> <br> <br> src/person/PersonProcessor.java:88: cannot find symbol<br> symbol  : method createPerson()<br> location: class person.Person<br>                                 person.Person _person = person.Person.createPerson();<br> <br> src/person/PersonProcessor.java:90: cannot find symbol<br> symbol  : method save()<br> location: class person.Person<br>                                 if (_person.save()) {<br>                                            ^<br> src/person/PersonProcessor.java:103: cannot find symbol<br> symbol  : method loadPersonByORMID(int)<br> location: class person.Person<br>                                 person.Person _person= person.Person.loadPersonByORMID(getId());<br> <br> <br> ..... <br> <br> <br> src/person/Person_has_lendersProcessor.java:80: cannot find symbol<br> symbol  : method createPerson_has_lenders()<br> location: class person.Person_has_lenders<br>                                 person.Person_has_lenders _person_has_lenders = person.Person_has_lenders.createPerson_has_lenders();<br>                                                                                                          ^<br> src/person/Person_has_lendersProcessor.java:82: cannot find symbol<br> symbol  : method save()<br> location: class person.Person_has_lenders<br>                                 if (_person_has_lenders.save()) {<br>                                                        ^<br> src/person/Person_has_lendersProcessor.java:95: cannot find symbol<br> symbol  : method loadPersonByORMID(int)<br> location: class person.Person<br>                                 person.Person_has_lenders _person_has_lenders= person.Person_has_lenders.loadPerson_has_lendersByORMID(person.Person.loadPersonByORMID(getBorrower_personid()), person.Person.loadPersonByORMID(getLender_personid()));]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19539.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19539.html</link>
				<pubDate><![CDATA[Wed, 10 Oct 2007 14:53:00]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> Sorry about this. I'll check with our engineers and then come back to you as soon as possible.<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19546.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19546.html</link>
				<pubDate><![CDATA[Wed, 10 Oct 2007 18:18:37]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail, <br> <br> The problem has been fixed. We will not allow generating JSP sample if DAO Interface is selected. You may download the patch at:<br> <a href="http://files3.visual-paradigm.com/200710/Patch/sp1_20071012j/VP_Suite_Windows_3_1_sp1_20071012j.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200710/Patch/sp1_20071012j/VP_Suite_Windows_3_1_sp1_20071012j.exe</a><br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19687.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19687.html</link>
				<pubDate><![CDATA[Wed, 17 Oct 2007 17:12:53]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Any hint why you have selected to restrict this? Just to understand the problem better... <br> <br> Could you also provide a patch for Mac OS. Thank you. <br> <br> Mikhail ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19689.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19689.html</link>
				<pubDate><![CDATA[Wed, 17 Oct 2007 18:11:30]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> I would like to let you know we have released a newer build recently and it is recommend for you to upgrade to this build. Please download and install the new build at the following link. If you need any help, please do not hesitate to contact me.<br> <br> <a href="http://files3.visual-paradigm.com/200710/Patch/sp1_20071101d/VP_Suite_Windows_3_1_sp1_20071101d.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200710/Patch/sp1_20071101d/VP_Suite_Windows_3_1_sp1_20071101d.exe</a><br> <br> and as I know DAO does not support generating JSP sample. It was a mistake for DAO Interface to be available. Therefore, we have disabled that option.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19725.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19725.html</link>
				<pubDate><![CDATA[Mon, 22 Oct 2007 18:55:45]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Could you post a link to a Mac OSX version. Thank you.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19726.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19726.html</link>
				<pubDate><![CDATA[Mon, 22 Oct 2007 19:13:41]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Yes, we are uploading. Sorry about this.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19727.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19727.html</link>
				<pubDate><![CDATA[Mon, 22 Oct 2007 19:16:49]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Hi Mikhail,<br> <br> Please download again at:<br> <a href="http://files3.visual-paradigm.com/200710/Patch/sp1_20071101f/VP_Suite_MacOSX_3_1_sp1_20071101f.dmg" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200710/Patch/sp1_20071101f/VP_Suite_MacOSX_3_1_sp1_20071101f.dmg</a><br> <br> Best regards,<br> Jick<br> <br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19730.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19730.html</link>
				<pubDate><![CDATA[Mon, 22 Oct 2007 19:31:34]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ Ok. Thank you, Jick.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19732.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19732.html</link>
				<pubDate><![CDATA[Mon, 22 Oct 2007 19:37:22]]></pubDate>
				<author><![CDATA[ Mikhail]]></author>
			</item>
			<item>
				<title>Re:Java (JSP) code generation problem in a self many-to-many relationship</title>
				<description><![CDATA[ You're welcome!  :D ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2533#19743.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2533#19743.html</link>
				<pubDate><![CDATA[Tue, 23 Oct 2007 09:10:04]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>