-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [Hibernate Search] Multiple params for ParameterizedBridge
PostPosted: Sun Mar 30, 2008 3:52 pm 
Newbie

Joined: Mon May 07, 2007 8:37 pm
Posts: 15
I couldn't find it in the forum, but I am sure it is a common question. In the doc it gives this example:

Quote:
@FieldBridge(impl = SomeBridge.class, params = @Parameter(name = "name1", value = "value1"))


How to pass two parameters, (name1, value1) and (name2, value2)?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 31, 2008 6:03 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

just use an array of parameters

Code:
@FieldBridge(impl = SomeBridge.class,
                   params = {@Parameter(name = "name1", value = "value1"),
                   @Parameter(name = "name2", value = "value2"),
                   @Parameter(name = "name3", value = "value3")})


--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.