Hi there,
have troubles in visualizing the value of a primary key field.
If I do a manual select statement with a Db-client I see the values.
Here is an extract of my application-shema.xml :
<table name="District" skipSql="true">
<column name="DistrictID" required="true" primaryKey="true"
type="INTEGER"/>
<column name="Description" size="50" type="VARCHAR"/>
</table>
<table name="Area" skipSql="true">
<column name="Area_NID" required="true" primaryKey="true"
type="INTEGER"/>
<column name="Area_SDescription" size="50" type="VARCHAR"/>
</table>
<table name="Seller" skipSql="true">
<column name="Sell_NSellID" required="true" primaryKey="true"
type="INTEGER"/>
<column name="Sell_NArea" type="INTEGER"/>
<column name="Sell_NGroup" type="INTEGER"/>
<column name="Sell_NDistrict" type="INTEGER"/>
<column name="Sell_NSector" type="INTEGER"/>
<column name="Sell_NDivision" type="INTEGER"/>
<column name="Sell_SLastname" size="30" type="VARCHAR"/>
<column name="Sell_SFirstname" size="30" type="VARCHAR"/>
<column name="Sell_SHandy" size="20" type="VARCHAR"/>
<column name="Sell_SPIVA" size="20" type="VARCHAR"/>
<column name="Sell_SFisCode" size="16" type="VARCHAR"/>
<column name="Sell_SEnasarco" size="30" type="VARCHAR"/>
</table>
If I want to see the value for column DistrictID of table District, it
works.
But if I try to show the value for Sell_NSellID of table Seller, it doesn't.
Here is the code that I use to visualize :
Vector v = SellerPeer.doSelect(criteria);
Vector v2 = new Vector();
Districtsellerrel dsr = new Districtsellerrel();
District d = new District();
Seller sel = new Seller();
for(int i=0; i < v.size(); i++)
{
sel = (Seller)v.get(i);
System.out.println("getSellNsellid : "+sel.getSellNsellid());
System.out.println("getSellNarea : "+sel.getSellNarea());
}
The method name, must be the right one.
Any help is very appreciated.
Regard
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]