2 Replies Latest reply on Dec 12, 2003 7:49 PM by Odysseus Levy

    Automatic update of database when CMP entity bean changes

    Odysseus Levy Newbie

      When I add or remove a property to one of my CMP Entity beans, I am aware of only two ways to update the corresponding database.

      (1) Delete the table in question, and re-deploy the relevant .jar to have the table recreated. This is only OK if don't care about the existing data.

      (2) Manually add or remove columns to the database to match the new properties. This is sometimes tricky to get exactly right.

      Both of these choices are incovenient. Am I missing any options? Is there any way for this to be handled automatically?

      Thanks.