This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 20130130 ] [ JDK VERSION : 1.7.0_09 ] I noted that EJB3-persistence unit is replaced with "Persistence - hibernate - jpa - 2.0..." and those libriaries are not compatible with EJB3. As I'm writing a new persistenceprovider to replace hibernate it actually broke my code, and besides replacing a core library with a third-party is never a good idea. This is a regression from 20130126 witch has the correct libraries.
It's unclear what is wrong. Persistence was a part of hibernate JPA 1.0 API and in 7.3.1 its replaced with new hibernate library with JPA2.0 api, no JPA 1.0 api is bundled with nb any more. We can't keep it forever, what is the issue here?
If you need any library isn't bundled with nb you can always create it yourself.
and it's not part of 7.3 also (regarding version) it's part of nb next
Then were are the correct libraries? According to http://docs.oracle.com/javaee/5/api/javax/persistence/spi/PersistenceProvider.html they should be there... The libraries with netbeans does not conform to that.
yes, nb next will contain separate api for ee6/jpa2.0 derived from hibernate(but may be hbernate can be dropped in lib name) and api for ee7/jpa2.1 as part of eclipselink. no ee5/jpa1.0 library. If you need ee5 level, you'll need to download ee5/jpa1.0 api jar and create a library. But do you mean there is no PersistenceProvider in supplied @Persistence - hibernate - jpa - 2.0...@?
No, just that it does not have the same signature, and that makes it non-backward compatible.
yes, jpa 1 provider should work in jpa 2 environment but backward compatibility isn't provided, it seems ok. If you really want to create jpa1.0 provider with next nb which will be released not sure when but likely after ee7 will be already released, you have to use your own api jar instead of bundled one.
May be so, but IMHO there still should have been @Deprecated and created new interfaces for ee6+ instead of just replacing them without notice
It's 3-4 clicks to create your own library with the same jars (except jars downloading) (it's on nb side). regarding api changes in 1.0->2.0 I have no comments why it was done this way or another way.