Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modify Portlet Factory Application

 
Natt Gonzalez
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new on Portlet Factory. I have to modify a EAR file that someone developped some years ago. I can't installed Portlet Factory by now, so I'm trying to modify files with an editor. I have to add a new column in the SQL and then I have to show it in the table.
I have modify my provider and the SQL query now is returning the new column. My problem is modifying the consumer, I have modified my consumer.model to add the new column but it doesn't appear when I execute the application.
What is the step that I'm missing?
I can see that the generate a jsp under genjsp directory but It doesn't have the new column.
In the .model file I have modified
<BuilderCall id="bc28"><BuilderDefID>com.bowstreet.builders.webapp.VariableBuilder</BuilderDefID> to add the new column
and <BuilderCall id="bc18"><BuilderDefID>com.bowstreet.builders.webapp.pageautomation.DataPageTableModifier</BuilderDefID> to add the description for the new column.
Thanks in advance.
 
Mohan Ramu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<mapping package=“x.x.x”/> not working fine in hibernate


I have many classes in my Hibernate annotation project,

i want to add all those classes in hibernate.cfg.xml.

if i add set of classes like below , it's working fine,

<mapping class="com.infosys.ans.data.model.InbMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceAccessTypMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceOperTypMst"/>
<mapping class="com.infosys.ans.data.model.OutbMst"/>
<mapping class="com.infosys.ans.data.model.StsMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceMst"/>

to reduce the code , i want to add only package name.

Thanks in advance
 
Natt Gonzalez
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand anything

Mohan Ramu wrote:<mapping package=“x.x.x”/> not working fine in hibernate


I have many classes in my Hibernate annotation project,

i want to add all those classes in hibernate.cfg.xml.

if i add set of classes like below , it's working fine,

<mapping class="com.infosys.ans.data.model.InbMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceAccessTypMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceOperTypMst"/>
<mapping class="com.infosys.ans.data.model.OutbMst"/>
<mapping class="com.infosys.ans.data.model.StsMst"/>
<mapping class="com.infosys.ans.data.model.InterfaceMst"/>

to reduce the code , i want to add only package name.

Thanks in advance
 
Natt Gonzalez
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the solution. My problem was that I wasn't changing all the SQL querys with the result data, so add the new column to all the SQL querys and I could see my changes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic