Java Persistence API sounds pretty cool. Seems like they're taking a lot of good ideas from Hibernate and similar tools. How does JPA relate to EJB?
I thought EJBs *were* the Sun answer to persistance? Why do they feel the need to have another API?
because it turned out that EJBs sucked. the open source community came up with much better alternatives. and EJB 3.0 is pretty much a complete overhaul of the API.
.NET is sun's answer to java
*Entity* EJBs were the "Sun answer to persistance". But no one in their right mind would use them, way to messy. So that's why they came out with EJB 3.0 I guess, but I don't know if EJB 3.0 is any better.
EJBs in general should be avoided if at all possible.
EJB 3.0 uses JPA for entity persistence/ORM. like a total rework of the whole Entity Bean stuff. Now they are just breaking it out into its own seperate API so you can use it outside of EJBs
I don't know if I'd ever use it, but it was interesting. using annotations like @OneToMany makes me think it wants to be ActiveRecord :)