Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate global "dynamic-insert"

Tags:

hibernate

Is there way to set the dynamic-insert attribute globally with Hibernate (so it would be the default for all entities) ?

like image 693
Alex Avatar asked Mar 24 '26 23:03

Alex


1 Answers

in NHibernate it is

foreach (var clazz in config.ClassMappings)
{
    clazz.DynamicInsert = true;
}

i don't know the exact syntax in hibernate.

for (PersistentClass clazz : configuration.ClassMappings)
{
    clazz.setDynamicInsert(true);
}
like image 129
Firo Avatar answered Mar 27 '26 03:03

Firo