Issue Details (XML | Word | Printable)

Key: HSEARCH-210
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Mark Stewart
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hibernate Search

Support for an XML mapping model

Created: 09/Jun/08 10:44 AM   Updated: 23/Jan/09 04:18 AM
Component/s: mapping
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: All.


 Description  « Hide
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.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Sanne Grinovero added a comment - 10/Jun/08 05:27 AM
I agree it would be an improvement, but you should be able to annotate your entities with Search specific annotations and keep the rest of hibernate's configuration in xml.

Emmanuel Bernard added a comment - 30/Jun/08 08:42 AM
Sanne is correct, you don't need to convert your existing mapping into annotations to benefit from Hibernate Search
You just need to use the HSearch annotations. I think I give an example in Hibernate Search in Action.

You can also check http://hibernate.org/443.html.

I changed the bug into new feature

Isaac W Hanson added a comment - 08/Sep/08 12:21 PM
I would really like this feature. Could you direct me to your project's guidelines/resources for contributing code? I may decide to implement this.

Emmanuel Bernard added a comment - 09/Sep/08 09:11 AM
Cool
There is no strong guideline
Here is how to get the source and compile the project
http://hibernate.org/6.html#A4

Isaac W Hanson added a comment - 09/Sep/08 02:16 PM
Excellent. If I have questions concerning the implementation, is there a point of contact? I may have questions for the contributors of the code that creates the attributes from the mapping file. (org.hibernate.cfg.annotations.reflection). If I get a working implementation, I plan to contribute it. Anyone that has already made some progress on this feature (or has useful tips) may contact me isaacwhanson@gmail.com

Emmanuel Bernard added a comment - 16/Sep/08 02:59 PM
redirect your questions to the Hibernate dev list. hibernate-dev@lists.jboss.org (you need to be registered)
this is where you will get most feedback.

Kenny MacLeod added a comment - 23/Jan/09 04:18 AM
+1 for this feature. In many cases, you have no control over the object model being stored in the cache, either because it's not your source code, or it's a generated object model. Annotations are all well and java-trendy, but they don't cover every situation. By supporting only the annotation model, all you do is limit the application of the tool.