[英]Dynamic queries with hibernate
我有一个应用程序,我需要让最终用户通过某种类型的向导定义他们的选项来创建adhoc报告,其过程类似于:
1) User selects the table(s) he wants to query (eg person, project, activities)
2) defines the list of fields he requires (eg name, email, projects, activity, activity info)
3) supplies the filter criteria for the records to return (eg Person name, ongoing activities)
我正在使用带有超过100个表的postgres数据库的hibernate。 当然,我不能让用户挑选任何这些表,因为它们毫无意义。 但是有10个主要表格(例如上面的表格)。
所以我需要建议如何:
我非常感谢所有的反馈,如果我没有正确解释需要请写。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.