[hibernate-dev] BoostStrategy issues
Emmanuel Bernard
emmanuel at hibernate.org
Fri Dec 4 11:20:22 EST 2009
On 4 déc. 09, at 16:51, Hardy Ferentschik wrote:
>
> On Fri, 04 Dec 2009 12:35:51 -0300, Emmanuel Bernard
> <emmanuel at hibernate.org> wrote:
>
>> But then, would it make sense to reuse @Boost instead of a separated
>> annotation as it is today?
>
> The main reason for using an explicit @Dynamic boost was to be more
> explicit.
> Using @Boost means we need to add another parameter
> 'boostStrategyImpl'
> which would
> default to DefaultBoostStrategy.
>
> The question is then what you do if someone specifies a boost value,
> eg
> 2.0f together
> with a CustomBoostStrategy? Throw an exception, print a warning, apply
> both? I guess
> we would have to apply both, so effectively you define two boost
> values
> with the same
> annotation.
>
> Both solutions - standalone @DynamicBoost or dynamic boosting rolled
> into
> @Boost - have
> their pro and cons. Personally I lean towards @DynamicBoost at the
> moment.
Right good summary,
But adding @DynamicBoost in @Field will be fugly and raises the same
problems.
More information about the hibernate-dev
mailing list