简体   繁体   中英

Set schema for @Embedded tables in JPA annotation?

I'm using JPA to persist my data and have one column that is @embedded and refers to a class that is @embeddable .

When my job runs the tables are created in the schema I specify via the @table annotation. But the data for the @embeddable objects are written in the default schema. I do not see any property to set the schema for the @embeddable tables.

Hope you can point me in the right direction!

答案似乎是添加注释@CollectionTable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM