Anomalie #2075
Method find(String hql, int startIndex, int endIndex, Object... args) can't be called
| Status: | Résolu | Start date: | 05/03/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% | ||
| Category: | topia-persistence | Spent time: | - | |
| Target version: | 2.6.11 |
Description
Calling method :
context.find(query, 0, 0, "entryBook", entryBook, "financialPeriod", financialPeriod);
produce non resolvable error:
the methods find(String, Object[]) is ambiguous for the type TopiaContextImplementor
Associated revisions
fixes #2075 method without bounds is now called findAll
This might introduce a non-backward compatibility, but it's still better than the actual name
fixes #2075 Rename method TopiaContext#find(String, Object...) to TopiaContext#findAll(String, Object...)
History
#1
Updated by Arnaud Thimel 12 months ago
- Category set to topia-persistence
- Status changed from Nouveau to Assigné
- Assignee set to Arnaud Thimel
- Target version set to 3.0
#2
Updated by Arnaud Thimel 12 months ago
- Status changed from Assigné to Résolu
- % Done changed from 0 to 100
Appliqué par commit r2557.
#3
Updated by Arnaud Thimel 12 months ago
- Status changed from Résolu to Assigné
- % Done changed from 100 to 50
Ok, this is fixed for ToPIA 3.0 but also has to be fixed for 2.6.x
#4
Updated by Arnaud Thimel 12 months ago
- Target version changed from 3.0 to 2.6.11
#5
Updated by Arnaud Thimel 12 months ago
- Status changed from Assigné to Résolu
- % Done changed from 50 to 100
Appliqué par commit r2562.
#6
Updated by Éric Chatellier 12 months ago
- Status changed from Résolu to Assigné
find et findAll revoit tout deux des lists.
Je rejouterais bien un troisieme find qui retourne un résultat unique
car c'est mon principal cas d'utilisation.
#7
Updated by Arnaud Thimel 12 months ago
- Status changed from Assigné to Résolu
Ce ticket correspond à une correction d'anomalie.
Éric, merci de créer une demande d'évolution pour ta demande.