Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
Telosys Tools Eclipse 插件就是为此类工作而设计的。
您可以使用基本模板从数据库生成 Java (POJO) 类
您还可以创建自己的模板(Velocity 文件)来生成 DAO 类,
请参阅 http://www.telosys。组织/
The Telosys Tools Eclipse plugin is designed for this kind of job.
You can generate your Java (POJO) classes from the database with the basic templates
and you can also create your own template (a Velocity file) to generate your DAO classes
See http://www.telosys.org/
Telosys 工具非常强大,当您选择 jdbcTemplate 而不是 ORM 时,您可以为每个模型编写 CRUD 操作的代码。如果你有很多模型,你就有很多代码来做同样的事情,那么你需要 Code Gen。
The Telosys Tools its powerful, when your choice is jdbcTemplate not ORM, you write your code for CRUD Operation per Model. If your have a lot of Model you have a lot of code for do the same things that's you need Code Gen.
我对此做了很多研究,现在我知道没有适合我目的的 Eclipse 插件。
I did a lot of research around this and now i know that there is no Eclipse plugin for my purpose.
QueryDSL 有很好的支持 JDBC 并自动为您生成实体,但是:我不知道它如何与 JdbcTemplate 结合在一起,因为 QueryDSL“想要”使用自己的对象查询“语言”(基于Java)。
它还与 Eclipse 很好地集成。
QueryDSL has good support for JDBC and generates Entities for you automatically, however: I don't know how that would go together with JdbcTemplate, as QueryDSL "wants" to use its own object query "language" (Java-based).
It also integrates nicely with Eclipse.