What are the advantages and disadvantages of Hibernate & EJB3 relative to each other?
I found this post, but it didn't really address my question. If I don't have any particular tie to either technology, what would cause me to pick one over the other? Or are there situations where I would want to use both?
Thanks, Zack
edit: in response to comments: I don't know much about EJB3. I'm just trying to learn if it's something that would be viable for my company. If EJB3 isn't comparable to Hibernate, please explain why.
noun, plural pros. a proponent of an issue; a person who upholds the affirmative in a debate. an argument, consideration, vote, etc., for something.
phrase. The pros and cons of something are its advantages and disadvantages, which you consider carefully so that you can make a sensible decision. Motherhood has both its pros and cons.
When weighing options, we use “pros” to describe positives while using cons to describe negatives. The idiom “pro and con” compares the advantages and disadvantages of something with the intention to aid in the decision-making process.
In 1985, PROS was founded by Mariette and Ron Woestemeyer. After helping pioneer revenue management in the airline industry, PROS expanded into price management and pricing optimization.
JPA provides a subset of Hibernate functionality, but EJB3 provides other services that Hibernate does not address (e.g. Web services, EJBs, Timer service)
JPA offers the following benefits compared to Hibernate:
Hibernate offers the following benefits:
What you can do is write your application in EJB using JPA and then when necessary use Hibernate-specific features. Or just use plain Hibernate for persistence if you don't care about standardization and vendor lock-in. Realistically, it's unlikely you will switch between Hibernate and another provider, but it does happen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With