maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markku Saarela <markku.saar...@iki.fi>
Subject Re: DAO injection in integration tests with a few database server specific methods
Date Sat, 24 Nov 2012 18:49:50 GMT
Not on this list, this is for Maven.

Markku
On 11/24/2012 08:28 PM, Martin Gainty wrote:
> so.. i guess the short answer is no there is no way to introduce hints into Hibernate
generated queries.. Takk,
> Martin______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so
bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer
Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails
koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.
>
>   > Date: Sat, 24 Nov 2012 19:42:49 +0200
>> From: markku.saarela@iki.fi
>> To: users@maven.apache.org
>> Subject: Re: DAO injection in integration tests with a few database server specific
methods
>>
>> Use Spring and Hibernate list for questions related on those.
>>
>> Markku
>>
>> On 11/24/2012 05:36 PM, Martin Gainty wrote:
>>> that *should* work as Hibernate Session would generate an List of Persisted NavbarLanguage
Classes (which your method returns) ..but...the generated Query would not be hinted..so optimizing
the query is not enabled
>>> does anyone know to introduce Hints into Hibernate generated queries?
>>> Martin
>>> ______________________________________________
>>> Place long winded disclaimer here > Date: Fri, 23 Nov 2012 01:55:57 -0800
>>>> From: mittiprovence@yahoo.se
>>>> To: users@maven.apache.org
>>>> Subject: Re: DAO injection in integration tests with a few database server
specific methods
>>>>
>>>> Here is how I'm using the injected custom DAO bean method:
>>>>
>>>> 	public List<NavbarLanguage> findWithNavbar(Navbar navbar) {
>>>> 		if (navbarLanguageCustomDao != null) {
>>>> 			return navbarLanguageCustomDao.findWithNavbar(navbar);
>>>> 		} else {
>>>> 			Criteria criteria = getSession().createCriteria(getPersistentClass());
>>>> 			criteria.add(Restrictions.eq("navbar",
>>>> navbar)).addOrder(Order.asc("languageCode"));
>>>> 			return criteria.list();
>>>> 		}
>>>> 	}
>>>>
>>>> Not sure if it's the best way to go though :-)
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732611.html
>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>    		 	   		
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>   		 	   		


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message