thanks it works.
For a brief summary :
- having resources in src/main/resources make them available in the
classpath for the tests so you do not need any copy operation
- do not forget the leading "/" (which IMHO should be corrected in the docs)
regards,
chris
Hendrik Busch a écrit :
> Hi,
>
>> try putting your mapping_common.hbm.xml on "src/main/resources/"
>> instead.
>> or modify your getResourceAsStream to get the file
>> "META-INF/mapping_common.hbm.xml"
>
> you should not place Hibernate files in the META-INF directory. Either
> place them directly in src/main/resources (or src/test/resources if
> you only need them for testing) or place them in a folder
> corresponding to you Hibernate class package, e.g.
> src/main/resources/com/foo/bar.
>
> You should execute
>
> getClass().getResourceAsStream("/mapping_common.hbm.xml")
>
> with a leading slash in the path, as your previous path was relative
> the the package of the class in which you executed this command.
>
--
_____________________________________________________________________
Tennaxia, www.tennaxia.com,
Pilotez vos obligations environnementales
_____________________________________________________________________
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex -
Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
19, rue réaumur - 75003 Paris -
Tél : 01 42 77 04 19 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -
Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85
The information in this message sent by TENNAXIA is confidential
and may be legally privileged. It is intended solely for the
addressee(s). Access to this message by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify
the sender : any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and
may be unlawful.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]