Flushing the entity manager.
parent
8e00655c23
commit
9966f30c9a
|
|
@ -152,7 +152,7 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
* @see #updateExistingEntity(org.libreccm.imexport.Exportable,
|
* @see #updateExistingEntity(org.libreccm.imexport.Exportable,
|
||||||
* org.libreccm.imexport.Exportable)
|
* org.libreccm.imexport.Exportable)
|
||||||
*/
|
*/
|
||||||
@Transactional(Transactional.TxType.REQUIRED)
|
@Transactional(Transactional.TxType.REQUIRES_NEW)
|
||||||
public T importEntity(final String data) throws ImportExpection {
|
public T importEntity(final String data) throws ImportExpection {
|
||||||
try {
|
try {
|
||||||
final T importedEntity = objectMapper.readValue(data,
|
final T importedEntity = objectMapper.readValue(data,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue