<<上篇 | 首页 | 下篇>>

用Hibernate映射数据库视图View

关于用Hibernate映射数据库视图View,在Hibernate官方文档里提到过,如下:

There is no difference between a view and a base table for a Hibernate mapping, as expected this is transparent at the database level (note that some DBMS don't support views properly, especially with updates). Sometimes you want to use a view, but can't create one in the database (ie. with a legacy schema). In this case, you can map an immutable and read-only entity to a given SQL subselect expression:

阅读全文……

标签 : ,

配置JavaGroups作为OSCache分布式缓存的底部广播协议

配置JavaGroups作为OSCache缓存集群的底部广播协议,除了oscache-2.4.jar和oscache.properties之外,还依赖于concurrent.jarjgroups-all.jar

阅读全文……

标签 : , ,