[hibernate-dev] hibernate.hbm2ddl.auto = none

Sanne Grinovero sanne at hibernate.org
Tue Mar 29 11:03:54 EDT 2016


On 21 March 2016 at 14:52, Vlad Mihalcea <mihalcea.vlad at gmail.com> wrote:
> Sounds like a good idea. We can have a value of 'none' which can be used to
> easily make the switch from an external property during build. for instance.
>
> +1

Thanks!
Created:
 - https://hibernate.atlassian.net/browse/HHH-10657

Sanne

>
> Vlad
>
> On Mon, Mar 21, 2016 at 4:43 PM, Sanne Grinovero <sanne at hibernate.org>
> wrote:
>>
>> Hello all,
>> I've often used, and see others use, the value "none" for the property
>> hibernate.hbm2ddl.auto.
>>
>> In recent versions of Hibernate ORM I now get the following warning:
>>
>> [WARN] SessionFactoryBuilderImpl: Unrecognized hbm2ddl_auto value :
>> none.  Supported values include create, create-drop, update, and
>> validate.  Ignoring
>>
>> To my surprise, the warning is not a bug as there's not such thing as
>> "none" in the source code, nor could I find mention of it in older
>> versions of the documentation... so I'm not sure were I learned about
>> it but I've always found it to be quite handy as in many scripts using
>> properties, it's easy to give a value to a placeholder but it's not as
>> easy to not define a property at all.
>>
>> My guess is that "none" simply worked fine in practice on older
>> versions as it's not matching any of the actionable values, but now we
>> get this WARN which sounds concerning.
>>
>> Could we add "none" as an officially valid value for this property?
>>
>> Thanks,
>> Sanne
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>


More information about the hibernate-dev mailing list