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.

Bug 178897 - Hibernate provider only supported with NB-shipped binaries
Summary: Hibernate provider only supported with NB-shipped binaries
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-20 03:58 UTC by fommil
Modified: 2016-07-07 08:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fommil 2009-12-20 03:58:04 UTC
This is a bug that's been irritating me for a few releases now - this is not something that has just appeared in 6.8.

The Hibernate Framework support in a Web Application project necessitates that a library called hibernate-support be used, and if used in the Persistence context (any Java project type), necessitates that a library called hibernate-persistence be used.

I have a shared library descriptor which has my own (fuller, documented, with source) jars of hibernate and supporting libraries - but I call it "hibernate" (as you would) - neither the J2EE Framework or Persistence seem to be able to realise that.

The workaround is trivial - although cumbersome - create several class libraries using the above mentioned names. But this is a request to be able to associate the "Hibernate" concept to an arbitrarily named library descriptor.
Comment 1 Sergey Petrov 2010-04-02 11:35:26 UTC
right now newly created hibernate library (at least with 3.5 hibernate) may work with peristence, but nothing was done with hibernate framework.
Comment 2 Sergey Petrov 2012-06-09 13:14:55 UTC
after review I see it a bit different, if there are more then one library persistence will search and use first found, if first will be hibernate-support it will be used, from this view the issue isn't valid. there is also request/task to support better libraries handling on persistence side isn't specific to hibernate.

but from view on hibernate framework yes it support only bundled one library as it use internal classes an these classes may behave differently in different hibernate versions, it's a matter to extend support to different hibernate platforms but it looks more like enhancment and also related with task to update hibernate to latest version as well.
Comment 3 Martin Balin 2016-07-07 08:52:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss