Do the table still disappear when you restart or redeploy.
When I restarted AS, some tables disappeared. However, when I completely removed the line
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
All tables I recreated remain the same (no change). I do not understant why. Thank you for your response.
<property name="hibernate.hbm2ddl.auto" value="update"/>
for permanent persistence
double post, sorry
create-drop specifies that a table should be created if it does not exist and dropped when the AS is turned off.
Therefore, your tables were being created and dropped during the life of the server. By specifying update (which i think may be the default), the tables are created if needed, and updated as necessary - but never dropped.
Hope this helps.
I will try it. Thank you so much for your help. I really appreciate it.