Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Three questions about ORM and Spring Framework

 
Joe Wrider
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two statements, but not sure whether they are
correct or not. I have a question. Here you are:

1. CMP and BMP were used together to work with objects
in memory but persist objects in hard disk as
relational datbase before the popularity of ORM tool,
like Hibernate or OJB.

2. EJB vendor like weblogic, oracle, websphere, sun,
jboss, each implements Enterprise Container including
CMP, but developers have to code the Deployment
Descriptors for session bean, CMP by themselves.

3. Spring Framework is an alternative to EJB
Container. I am wondering whether Spring Framework and
Hibernate can be used together or not?

Thanks in advance.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. CMP and BMP were used together to work with objects
in memory but persist objects in hard disk as
relational datbase before the popularity of ORM tool,
like Hibernate or OJB.

Entity beans are an ORM technology themselves.


2. EJB vendor like weblogic, oracle, websphere, sun,
jboss, each implements Enterprise Container including
CMP, but developers have to code the Deployment
Descriptors for session bean, CMP by themselves.

Yup. Unless they use a suitable IDE that does it for them (RAD for example)


3. Spring Framework is an alternative to EJB
Container. I am wondering whether Spring Framework and
Hibernate can be used together or not?

Yes. Support for Hibernate comes out the box. You can use Spring, or just use Hibernate directly for your persistence layer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic