0

在使用休眠工具成功对我的数据库进行逆向工程后,我尝试使用 jpa facet 模式做同样的事情。成功连接到数据库(与之前用于休眠 rev-eng 的连接相同),它检测所有其他模式(pg_catalog、pg_information、pg_toast_temp)的内容,但重要的是:“public”。关于如何让它检测公共模式并从中生成实体的任何想法?我想提一下,我的 persistence.xml 几乎是空的:

 <?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <persistence-unit name="testjpa">
    </persistence-unit>
</persistence>
4

0 回答 0