• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating tables from entity classes

 
Marembo Ochieng'
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have coded the entity classes and need the application to automatically generate the entity tables during deployement.
the problem is that even after i set the persistence unit for the project, i get an error like:

java.io.FileNoteFoundException: ......\tamasha\tamash-ejb\tamasha-ejb-createJdbc.jdbc

the file that is generated to contain the sql commands for creating the tables cannot be found, or is not generated.
when i set it manually, the application server deletes it during deployement.

what might be the problem?

any help will be highly appreciated

marembo
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to tell us that what is the tool/environment you are using. The question is too abstract.

Also, it is not related to Distributed Java. Moving to Object Relational Mapping forum.

[NK: Changed the destination forum name]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic