Does Hibernate supports multiple schemas connection ?

i want to connect to multiple schema's on the same data base using

hibernate...

my hbm.xml looks like this

<hibernate-mapping>

<class name="SampleClass" table="SampleTable" schema="DynamicSchema">

.

.

.

.

.

</hibernate-mapping>

i need to enter the schema name as parameter

and change it dynamically....

is this possible or are there another way in hibernate ?

thanks in advance and

some code wouldn't kill any one :)

[644 byte] By [cutouta] at [2007-11-27 6:35:56]
# 1
Multiple class elements may be specified in the hibernate-mapping element.
dvohra09a at 2007-7-12 18:03:15 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
come again plz. i didn't get it?!!!
cutouta at 2007-7-12 18:03:16 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Each JavaBean class may connect to only one schema.
dvohra09a at 2007-7-12 18:03:16 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
To set schema dynamically the org.hibernate.mapping.Table class has a method setSchema(String) http://www.hibernate.org/hib_docs/v3/api/org/hibernate/mapping/class-use/Table.html
dvohra09a at 2007-7-12 18:03:16 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5
thanks a lot for being kind but the problem is that am very new in hibernate any ideas how to use this ?
cutouta at 2007-7-12 18:03:16 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...