New fields with orion .....

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top