HHH-11986 - @LazyGroup is ignored on LazyToOne association with 'mappedBy'

Fix tests failing on MariaDB
This commit is contained in:
Vlad Mihalcea 2017-11-09 09:46:36 +02:00
parent 4531b22e92
commit 20422cd76a
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.LazyGroup;
import org.hibernate.annotations.LazyToOne;
@ -22,6 +23,7 @@ import org.hibernate.annotations.LazyToOneOption;
* @author Jan-Oliver Lustig, Sebastian Viefhaus
*/
@Entity
@Table(name = "LGMB_FROM")
@Access(AccessType.FIELD)
public class LGMB_From {

View File

@ -6,6 +6,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.AccessType;
@ -15,6 +16,7 @@ import org.hibernate.annotations.AccessType;
* @author Jan-Oliver Lustig, Sebastian Viefhaus
*/
@Entity
@Table(name = "LGMB_TO")
public class LGMB_To {
@Id
private static final long serialVersionUID = 1L;