gpt4 book ai didi

hibernate - 查看与 hibernate

转载 作者:行者123 更新时间:2023-12-04 05:21:19 28 4
gpt4 key购买 nike

如何使用Hibernate映射具有多个实体的 View ?
问候,
混沌

最佳答案

请参见Hibernate文档中第5.1.3节“类”,紧接在“Id”节之前:

There is no difference between a view and a base table for a Hibernate mapping. This is transparent at the database level, although some DBMS do not support views properly, especially with updates. Sometimes you want to use a view, but you cannot create one in the database (i.e. with a legacy schema).



http://docs.jboss.org/hibernate/core/3.5/reference/en/html/mapping.html#mapping-declaration-class

还有一个有关如何使用XML的示例。

关于hibernate - 查看与 hibernate ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5111176/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com