HHH-17514 Add test for issue to show that it has alredy been resolved
This commit is contained in:
parent
5a89a31e63
commit
31e3be15bf
|
@ -0,0 +1,30 @@
|
||||||
|
package org.hibernate.processor.test.map;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.hibernate.annotations.JdbcTypeCode;
|
||||||
|
import org.hibernate.type.SqlTypes;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.Table;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table( name = "MAP_OF_MAP_ENTITY" )
|
||||||
|
public class MapOfMapEntity {
|
||||||
|
@Id
|
||||||
|
@Column(name="key_")
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
@JdbcTypeCode(SqlTypes.JSON)
|
||||||
|
private Map<String, Map<String, Object>> mapOfMap;
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package org.hibernate.processor.test.map;
|
||||||
|
|
||||||
|
import org.hibernate.processor.test.util.CompilationTest;
|
||||||
|
import org.hibernate.processor.test.util.TestForIssue;
|
||||||
|
import org.hibernate.processor.test.util.WithClasses;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.jupiter.api.Assertions;
|
||||||
|
|
||||||
|
import static org.hibernate.processor.test.util.TestUtil.getMetamodelClassFor;
|
||||||
|
|
||||||
|
public class MetamodelGeneratedTest extends CompilationTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@WithClasses({ MapOfMapEntity.class })
|
||||||
|
@TestForIssue(jiraKey = " HHH-17514")
|
||||||
|
public void test() {
|
||||||
|
Class<?> repositoryClass = getMetamodelClassFor( MapOfMapEntity.class );
|
||||||
|
Assertions.assertNotNull( repositoryClass );
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue