简体   繁体   中英

How to append schema name in the SQL generated by fastnate

I am using fastnate to generate some static data. My entities have the @Table annotation on them with the schema property. For example @Table(name = "PERSON", schema = "general") like so. However, the generated insert queries do not have the schema appended to them. My expectation is the generated SQL should look something like INSERT INTO general.PERSON(...) VALUES... , however the generated SQL is like INSERT INTO PERSON(...) VALUES... like so.

This is a known issue for Fastnate < 1.5.0, you can read about it here :

Some remarks:

  • The schema and catalog attributes are ignored for all ...Table annotations for versions before Fastnate 1.5.0

So you should use version 1.5.0 or later.

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