[Hibernate-JIRA] Created: (HSEARCH-210) Support hbm xml mapping!
by Mark Stewart (JIRA)
Support hbm xml mapping!
------------------------
Key: HSEARCH-210
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-210
Project: Hibernate Search
Issue Type: Bug
Components: mapping
Affects Versions: 3.0.1.GA
Environment: All.
Reporter: Mark Stewart
I like annotations as much as the next guy but it's a complete non-starter for our business (and, I suspect, plenty of others) to add full text search to our existing apps via Hibernate Search if it means we must convert all our existing hbm.xml configurations into annotations. The regression testing alone would kill us.
The Hibernate project has always been supremely pragmatic which is why I've filed this as a bug rather than a feature request. I don't think Hibernate would have been half as popular if it didn't support things like direct SQL and reverse engineering tools. I think Search would see a big boost if it could be easily added to existing applications.
Please consider adding the needed syntax for xml mapping. At the very least an entry in the FAQ that explains the lacking is needed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[Hibernate-JIRA] Created: (METAGEN-68) Some documented options are not recognized, namely, ormXml and addGeneratedAnnotation
by Oleksandr Alesinskyy (JIRA)
Some documented options are not recognized, namely, ormXml and addGeneratedAnnotation
--------------------------------------------------------------------------------------
Key: METAGEN-68
URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-68
Project: Hibernate Metamodel Generator
Issue Type: Bug
Components: documentation, processor
Affects Versions: 1.0.0.Final
Reporter: Oleksandr Alesinskyy
Assignee: Hardy Ferentschik
Priority: Minor
I use Hibernate 3.6.5.Final (depending on the version 1.0.0.Final of Metamodel Generator).
When I use the following arg-file for javac
{quote}
{noformat}
-d ../../../target/metamodel
-s ../../../target/metamodel
-ApersistenceXml=../../../../../integration/jpa-dao/src/main/resources/META-INF/fbs-persistence.xml
-AormXml=../../../../../integration/jpa-dao/src/main/resources/META-INF/fbs-orm-mapping.xml
-AaddGeneratedAnnotation=true
-proc:only
-cp .;W:/05_tools/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-core/3.6.5.Final/hibernate-core-3.6.5.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-envers/3.6.5.Final/hibernate-envers-3.6.5.Final.jar;W:/05_tools/.m2/repository/org/hibernate/hibernate-jpamodelgen/1.0.0.Final/hibernate-jpamodelgen-1.0.0.Final.jar;W:/01_workspace/FFEv2-fbs/bin;W:/05_tools/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar;W:/01_workspace/FFEv2-common/bin
{noformat}
{quote}
metamodel sources are successfully generated but the javac output looks as follows:
{quote}
{noformat}
Note: Hibernate JPA 2 Static-Metamodel Generator 1.0.0.Final
warning: The following options were not recognized by any processor: '[addGeneratedAnnotation, ormXml]'
{noformat}
{quote}
Needless to say the @Generated is absent from the generated files, e.g.
{code}
package com.navteq.ncs.fbs.domain.persistence;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(ActivationKeyAlgorithmPo.class)
public abstract class ActivationKeyAlgorithmPo_ {
public static volatile SingularAttribute<ActivationKeyAlgorithmPo, Long> id;
public static volatile SingularAttribute<ActivationKeyAlgorithmPo, String> name;
}
{code}
Both options are documented here http://docs.jboss.org/hibernate/stable/jpamodelgen/reference/en-US/html_s...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months