HHH-11314 - BasicHibernateAnnotationsTest.testInheritFiltersFromMappedSuperclass fails on MS SQL Server
This commit is contained in:
parent
d5538fc63b
commit
eaf5b10cf1
|
@ -6,6 +6,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.test.annotations.entity;
|
package org.hibernate.test.annotations.entity;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.MappedSuperclass;
|
import javax.persistence.MappedSuperclass;
|
||||||
|
|
||||||
import org.hibernate.annotations.Filter;
|
import org.hibernate.annotations.Filter;
|
||||||
|
@ -16,10 +18,11 @@ import org.hibernate.annotations.ParamDef;
|
||||||
* @author Sharath Reddy
|
* @author Sharath Reddy
|
||||||
*/
|
*/
|
||||||
@FilterDef(name = "byCategory", parameters = {@ParamDef(name = "category", type = "string")})
|
@FilterDef(name = "byCategory", parameters = {@ParamDef(name = "category", type = "string")})
|
||||||
@Filter(name = "byCategory", condition = ":category = CATEGORY")
|
@Filter(name = "byCategory", condition = ":category = `CATEGORY`")
|
||||||
@MappedSuperclass
|
@MappedSuperclass
|
||||||
public class Tool extends Widget {
|
public class Tool extends Widget {
|
||||||
|
|
||||||
|
@Column(name="`CATEGORY`")
|
||||||
private String category;
|
private String category;
|
||||||
|
|
||||||
public String getCategory() {
|
public String getCategory() {
|
||||||
|
|
Loading…
Reference in New Issue