HHH-8944 - ColumnTransformer handling is too aggressive in qualifying "column names"
Limited to H2 because getting a good expression to use for `Staff#kooky` that works on all databases is challenging and really what happens on the "database side" here is not relevant - the issue being tested is how Hibernate applies the table aliases to column references in the expression.
This commit is contained in:
parent
cf2c6235fd
commit
f89e82a020
|
@ -6,15 +6,14 @@
|
|||
*/
|
||||
package org.hibernate.test.annotations.various.readwriteexpression;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.Session;
|
||||
import org.hibernate.Transaction;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.hibernate.dialect.MariaDBDialect;
|
||||
import org.hibernate.dialect.H2Dialect;
|
||||
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.hibernate.testing.RequiresDialect;
|
||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
|
@ -22,8 +21,15 @@ import static org.junit.Assert.assertEquals;
|
|||
* @author Emmanuel Bernard
|
||||
*/
|
||||
public class ColumnTransformerTest extends BaseCoreFunctionalTestCase {
|
||||
/**
|
||||
* @implNote Limited to H2 because getting a good expression to use for
|
||||
* {@link Staff#kooky} that works on all databases is challenging and
|
||||
* really what happens on the "database side" here is not relevant -
|
||||
* the issue being tested is how Hibernate applies the table aliases to
|
||||
* column references in the expression.
|
||||
*/
|
||||
@Test
|
||||
@SkipForDialect( MariaDBDialect.class )
|
||||
@RequiresDialect(H2Dialect.class )
|
||||
public void testCustomColumnReadAndWrite() throws Exception{
|
||||
Session s = openSession();
|
||||
Transaction t = s.beginTransaction();
|
||||
|
|
Loading…
Reference in New Issue