Hibernate Search + Bridges + Spring
by Alexander Rosemann
Hi,
I'm currently stuck trying to use a Spring Bean as a FieldBridge.
I have a persisted Class A which has a property of type String. The
String represents a comma separated list of IDs which relate to Class B.
class A {
@Field
@FieldBridge(impl=BFieldBridge.class)
String bIds;
}
class B {
String name;
}
I have a Spring service that is able to resolve the comma separated list
of IDs into objects. I tried injecting the service into my FieldBridge
which dosen't work since the FieldBridge class gets created by Hibernate
Search rather than Spring.
I would love to reuse the service in my FieldBridge rather than
duplicating my code...
Did anybody tried to do something similar and has some suggestions/
pointers for me on how this can be achieved?
I'm using Hibernate 3.2.6.ga, Hibernate-Annotations 3.3.1.GA, Hibernate
Search 3.0.1.GA, Spring 2.0.5.
Thanks,
Alex
14 years, 11 months
total noobie question
by brian
Hi,
I'm one of those programmers who prefer to use notepad or at most
emacs as an editor, believe it or not I written some large programs
that way. Now trying hard to come into the modern age of Eclipse and Maven.
I'm trying to run the Hibernate tutorial at:
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#...
I put the pom.xml file on that page and mvn failed to build it...
"dependencies.version is missing" for various things
also
I've installed m2_eclise plug-in and imported the pom.xml file there.
How to I call mvn for this pom.xml from within eclipse?
Thanks!
Brian Wolf
14 years, 11 months