On 21 December 2011 17:58, Emmanuel Bernard <emman...@hibernate.org> wrote:
>
> On 21 déc. 2011, at 17:36, Sanne Grinovero wrote:
>
>> On 21 December 2011 17:34, Emmanuel Bernard <emman...@hibernate.org> wrote:
>>>
>>> On 21 déc. 2011, at 17:30, Hardy Ferentschik wrote:
>>>
>>>>>
>>>>> But we can reduce the number of methods called by doing something like 
>>>>> this
>>>>>
>>>>> builder
>>>>>   .spatial()
>>>>>       .forLocation("location")
>>>>>       .within(500, Unit.KM)
>>>>>           .ofLatitude(48.8d).andLongitude(2.29d)
>>>>>       .createQuery();
>>>>>
>>>>> Would you like it better?
>>>>
>>>> much actually :-)
>>>
>>> If we go that way, we could even make the alternative model more explicit 
>>> as well
>>>
>>> builder
>>>  .spatial()
>>>      .forLocation("location")
>>>      .within(500, Unit.KM)
>>>          .ofCoordinates(coordinates)
>>>      .createQuery();
>>
>> +1
>> Best looking I've seen so far. What's the type of _coordinates_ ?
>
> `Coordinates` :)

What's the type of `Coordinates` ?
And where do I find a markdown rendering plugin for gmail ?

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to