From: "ALex Loubyansky" <[EMAIL PROTECTED]>
> I developed an enitity bean with two cmp fields and deployed it. Then I
> added to it one more cmp field and deployed it again. But I can't work
with
> it. Because table in Hypersonic still has only two fields. How can I solve
> it?
JBoss doesn't do an alter table command when a table already exists,
regardless of the underlying database.

The solution is to drop the table and re-deploy. I've never tried to access
Hypersonic through JDBC, but I'm pretty sure that should be possible. The
optional Ant task 'sql' is ideal for this.

Another possibility would be to specify <remove-table>true</remove-table> in
your entity decleration in jaws.xml. Redeploy without the added fields, then
manually delete the deployment file. JBoss then will delete the table. After
this you can add the fields to ejb-jar.xml and on deployment a new table
will be created.




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to