st-tu-dresden / videoshop

SalesPoint sample application
Apache License 2.0
87 stars 246 forks source link

Add @Transactional for AbstractIntegrationTest to avoid LazyInitializationExceptions #50

Closed AndreasZaschka closed 8 years ago

AndreasZaschka commented 8 years ago

org.hibernate.LazyInitializationException while performing a test without the scope of the EntityManager. Solution: @Transaction

AndreasZaschka commented 8 years ago

Fixed with @Transactional annotation