Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] Default for "Discover annotated classes automatically"

To be clear it is not "not correct for Hibernate" it just not the obvious choice since Hibernate does provide use of classpath scanning even when not running in an EJB 3 container.

Which thus is a better choice since it avoids having to maintain persistence.xml.

/max

On May 18, 2012, at 8:54 , Dmitry Geraskov wrote:

> Hi, guys,
> 
> seems currently adopters could not change default value for "Discover annotated classes automatically". (Actually it is set on new JPA Project even earlier than user selects platform). You use "runtimeSupportsEjb30()" check, but this is not correct for Hibernate. Do you think it could be possible to allow adopters to provide different behaviour? (not sure as the defaults in this case should be read after platform selection)
> 
> (See https://issues.jboss.org/browse/JBIDE-11187 for details)
> 
> Dmitry Geraskov,
> Hiberante tools Developer



Back to the top