Java – use hibernate tools to generate a single table from the database HBM file
•
Java
I want to create a hibernate mapping file for several (not all) tables from my database How can I do this?
When I tried, it was considering my entire database and crashed without creating any mapping files It gave me the following errors:
Solution
You need to set your Reveng XML to view only specific tables The tutorial you mentioned does not include this content If you click renew XML (see in step 3 of this tutorial), you will select the required content through the wizard
Finally, you should expect an XML value to limit to the table you want:
<schema-selection match-schema="COMMON_SCHEMA" match-table="CITY"/>
About hibernate Reveng For exact details of the XML file, see red hat site
I'm sure you got this exception because there are two tables with the same name
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码