From 8042cc2cdbdc60dea038eefb777eaa44f8a8bd21 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 15 Nov 2021 18:21:02 +0100 Subject: [PATCH] Implemented BasicValue#accept method --- .../src/main/java/org/hibernate/mapping/BasicValue.java | 5 +++++ .../hibernate/{ => orm}/test/mapping/ValueVisitorTest.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) rename hibernate-core/src/test/java/org/hibernate/{ => orm}/test/mapping/ValueVisitorTest.java (99%) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java b/hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java index a23e146293..f34010db3f 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java @@ -777,6 +777,11 @@ public class BasicValue extends SimpleValue implements JdbcTypeDescriptorIndicat return temporalPrecision; } + @Override + public Object accept(ValueVisitor visitor) { + return visitor.accept(this); + } + /** * Resolved form of {@link BasicValue} as part of interpreting the * boot-time model into the run-time model diff --git a/hibernate-core/src/test/java/org/hibernate/test/mapping/ValueVisitorTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/ValueVisitorTest.java similarity index 99% rename from hibernate-core/src/test/java/org/hibernate/test/mapping/ValueVisitorTest.java rename to hibernate-core/src/test/java/org/hibernate/orm/test/mapping/ValueVisitorTest.java index 1f01501c48..0d7482633b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/mapping/ValueVisitorTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/ValueVisitorTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.test.mapping; +package org.hibernate.orm.test.mapping; import org.hibernate.boot.MetadataSources; import org.hibernate.boot.registry.StandardServiceRegistry;