Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教下我如果用orm层.例如hibernate 或guzz. 怎么和argo整合. #3

Open
xingzheone opened this issue Mar 21, 2013 · 6 comments

Comments

@xingzheone
Copy link

当前我们想用guzz.

@xingzheone
Copy link
Author

昨天刚夸回馈及时.今天就没人出来处理issue了?

@58code
Copy link
Owner

58code commented Mar 22, 2013

guzz与hibernate都是持久层的ORM框架,而Argo则是轻量级的MVC框架,Argo不像spring一样做了常规ORM工具的适配与整合操作,这也正是Argo的哲学之一:简单。
推荐解决:抽象接口,使用hibernate或者guzz默认实现,bind。

@frank0417
Copy link

能举个例子吗(与hibernate整合的方法)

@ghost
Copy link

ghost commented Apr 19, 2013

Argo 是不是基于 Guice 的?如果是可以看看 Hibernate 和 Guice 一起使用的例子。其实看看 Hibernate 的文档,知道如何原生使用 Hibernate 就好说了

@58code
Copy link
Owner

58code commented Apr 19, 2013

是的,argo 使用guice主要用于做类实例的管理。但是 Argo的职责只是进行mvc流转。并不会提供不必要的整合,也不会约束其扩展性。

@ghost
Copy link

ghost commented Apr 19, 2013

恩,看来原生使用 Hibernate 什么的就好,如果觉得没有一个 DI 很不方便的,最简单的就是使用 CDI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants