/* * Hibernate, Relational Persistence for Idiomatic Java * * JBoss, Home of Professional Open Source * Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU Lesser General Public License, v. 2.1. * This program is distributed in the hope that it will be useful, but WITHOUT A * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License, * v.2.1 along with this distribution; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ package org.hibernate.hql.lucene.internal.logging; import org.hibernate.hql.ParsingException; import org.jboss.logging.BasicLogger; import org.jboss.logging.Message; import org.jboss.logging.MessageLogger; /** * Logging methods for the Lucene query parser component. * * @author Gunnar Morling */ @MessageLogger(projectCode = "HQL") public interface Log extends BasicLogger { // All parser components use the same project prefix HQL. We need to make sure that there is no id conflict int HQL_LUCENE__START_ID = 100000; @Message(id = HQL_LUCENE__START_ID + 1, value = "The type %s is not an indexed entity.") IllegalArgumentException getNoIndexedEntityException(String typeName); @Message(id = HQL_LUCENE__START_ID + 2, value = "The type %s has no indexed property named %s.") ParsingException getNoSuchPropertyException(String typeName, String propertyName); @Message(id = HQL_LUCENE__START_ID + 3, value = "No queries can be applied to property %2$s in type %1$s since the property is analyzed.") ParsingException getQueryOnAnalyzedPropertyNotSupportedException(String typeName, String propertyName); @Message(id = HQL_LUCENE__START_ID + 4, value = "Unknown alias: %s.") ParsingException getUnknownAliasException(String unknownAlias); @Message(id = HQL_LUCENE__START_ID + 5, value = "Property %2$s can not be selected from type %1$s since it is an embedded entity.") ParsingException getProjectionOfCompleteEmbeddedEntitiesNotSupportedException(String typeName, String propertyPath); }