G
Gianni
I use orion application server and I have a BIG problem ... let see if
someone can help !
I added 3 fields to a database table.
I added the 3 fields in the file orion-ejb-jar.xml
<cmp-field-mapping name="state" persistence-name="state" />
<cmp-field-mapping name="date_min" persistence-name="date_min" />
<cmp-field-mapping name="date_max" persistence-name="date_max" />
I added those fields in the Bean
public StationPK ejbCreate(int ..., String ...., int ...., String
....., int ..., int ... , String state,Date date_min,Date date_max)
public StationPK ejbPostCreate(int ..., String ...., int ...., String
....., int ..., int ... , String state,Date date_min,Date date_max)
I added those field in the home Bean
public Station create(int ..., String ....., int ......, String .....,
int ...., int .... , String state, Date date_min, Date date_max)
I added those fields in the entity bean like this:
public Date getDate_min()
throws RemoteException;
public void setData_min(Date date_min)
throws RemoteException;
and I added those fields in the value class like this:
public void setDate_max(Date data_max)
{
this.date_max = date_max;
}
public Date getDate_max()
{
return(date_max);
}
but still I cannot view those new fields from the database . values
are always "null".
Any tips?
ciao
Gianni
someone can help !
I added 3 fields to a database table.
I added the 3 fields in the file orion-ejb-jar.xml
<cmp-field-mapping name="state" persistence-name="state" />
<cmp-field-mapping name="date_min" persistence-name="date_min" />
<cmp-field-mapping name="date_max" persistence-name="date_max" />
I added those fields in the Bean
public StationPK ejbCreate(int ..., String ...., int ...., String
....., int ..., int ... , String state,Date date_min,Date date_max)
public StationPK ejbPostCreate(int ..., String ...., int ...., String
....., int ..., int ... , String state,Date date_min,Date date_max)
I added those field in the home Bean
public Station create(int ..., String ....., int ......, String .....,
int ...., int .... , String state, Date date_min, Date date_max)
I added those fields in the entity bean like this:
public Date getDate_min()
throws RemoteException;
public void setData_min(Date date_min)
throws RemoteException;
and I added those fields in the value class like this:
public void setDate_max(Date data_max)
{
this.date_max = date_max;
}
public Date getDate_max()
{
return(date_max);
}
but still I cannot view those new fields from the database . values
are always "null".
Any tips?
ciao
Gianni