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 :)

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

Similar Messages

  • HT201250 Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How

    Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How ?

    Time Machine is capable of backing up to multiple locations, and can be used to back up to both a local hard drive and a networked drive (provided that that drive is in or connected to a Time Capsule or another Mac that is sharing it over the network). The catch, though, is that you can't specify different things to back up to different destinations. Whatever you exclude from Time Machine backups is excluded from ALL backups, and whatever is included is included on all.
    So, get a large enough drive that you can back up everything you want in all locations, or use something else for maintaining the network backup.
    More information on these topics can be found here:
    How do I set up Time Machine to a shared drive on another Mac?
    How do I set up Time Machine to a Time Capsule or Airport Extreme?
    "Rotating" Time Machine backup disks

  • Does JTree support multiple DnD?

    I'm working on an applet which displays a JTree tree, which has to support multiple DnD.
    i mean, user has to be capable of selecting several nodes at a time and drag all of them, dropping them into a target.
    Though i have asked about it, and somebody told me about it, the solution was with a JFrame, and all the examples which work and i've read, arre with JFrame.
    So i guess that maybe JTree does not support multiple DnD, and moreover, there is a website
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4165577
    in which someone says that, in fact, JTree does not support it. But it's and old page, so i want to know if at present, Jtree still has this debug.
    Thanks in advance!

    http://www.java-forum.org/de/viewtopic.php?p=139820#139820

  • Why java does not support multiple inheritance ???

    Hai friends ..iam new to java .. i have doubt ..plz help me
    Why java does not support multiple inheritance ???

    The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal.
    To understand multiple inheritance, the learner needs some level of expertise like virtual derivations etc in c++. Multiple inheritance will allow method duplication, and throws the learner into confusion which method might be called by the compiler in which scenario at run time.
    Even though this answer seems to be funny, this is the actual reason why java omitted multiple inheritance of classes.
    But java support multiple inheritance of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

  • Does endeca support multiple keyword search

    Am new to endeca.
    Does endeca support multiple keyword search in atg crs.
    an eg can we search for "shirt,shoes" and get results for both

    How specifically to implement this depends on how you are querying Endeca.  With a simple URL parameter query using the UrlENEQuery object you would set the parameter of Ntx=mode+matchany, and if you were using the ENEQuery class you would set it like:
    ENEQuery query = new ENEQuery();
    ERecSearchList searchList = new ERecSearchList();
    String matchMode = searchTerms.contains(",") ? "mode+matchany" : "mode+matchallpartial";
    ERecSearch search = new ERecSearch( "your-search-interface", searchTerms, matchMode );
    searchList.add( search );
    query.setNavERecSearches( searchList );
    If you are using the Assembler Service, you can include the Ntx parameter in the call, so you would wrap your call with some conditional logic, e.g.:
    String serviceCall = null;
    if( searchTerms.contains(",") ) {
       serviceCall = "assember/xml/browse?Ntt=shirt,shoes&Ntx=mode+matchany";
    } else {
      serviceCall = "assember/xml/browse?Ntt=shirt,shoes&Ntx=mode+matchallpartial";
    If you are using the Content Assembler API within your application, it will depend on how you are invoking it but some of the above should help you customise appropriately.
    HTH
    Michael

  • I am looking to turn my iPad into a portable device to store and view multiple files transferred from my pc. I have tried some apps but it does not support multiple sub folder transfers.  Any suggestions please?

    I am looking to turn my iPad into a portable device to store and view multiple files transferred from my pc. I have tried some apps but it does not support multiple sub folder transfers.  Any suggestions please?

    I use GoodReader on my iPad and use the GoodReaderUSB tool. the GoodReaderUSB tool allows you to transfer entire folders into GoodReader without loosing the folder/file structure.
    Windows: http://www.goodiware.com/usb/GoodReaderUSBWin_200.zip
    Mac: http://www.goodiware.com/usb/GoodReaderUSBMac_202.zip

  • WRT160N - does it support multiple vLan configurations?

    I'm trying to find more detailed tech. specifications of this thing (WRT160N), but unfortunatelly I get only some basic marketing messages... I need to understand if this router supports vLAN configuration, as I'm thinking to have IPtv and internet on the same. My provider does integrates the IPtv into separate vLAN, but their HW is not too good in other perspectives... So I'm thinking about linksys.
     So does it support multiple vLAN configuration (i.e. dedication of separate vLAN to exact port)?

    No. VLANs are not supported in Linksys devices. You'll have to look at Cisco Small Business or better.

  • HT202343 Profile Manager 3.2.2 does not support 'use per-connection password'

    Profile Manager 3.2.2 does not support 'use per-connection password' for wireless configuration as stated here.
    https://support.apple.com/en-lu/HT202343
    This feature stops users credentials from being remembered by the device, particularly useful for multi-user devices in an enterprise environment.
    Any help would be much appreciated.
    Thanks in advance

    Yes Clinton I did same, but they were (Huawei customer support) surprised about this problem, They behave like they have no idea about USB 2.0 and  3.0 knowledge. They handsUp that reason I posted my problem in this forum.
    So is there any better solution to use any mediator between these USB version handling, Please let me know.
    Thanks
    Tauheed

  • It appears that Adobe Air does not support persistent HTTP connections?

    As far as we can tell, Adobe Air does not support persistent HTTP connections via KEEPALIVE
    Thus a new connection has to be established to the server, making certain types of network intensive applications slow.
    Can anyone confirm if this is correct - is there any way to get Adobe Air to support KEEPALIVE and maintain persistent server connections?
    a

    I am trying to get 3.3 Beta 2 with Flash Builder 4.6 on Windows 7 x64bit to work. But still no luck.
    I have Flash Builder 4.6 on Win7 to work no problem.
    I have updated the playerglobal.swc to 11.3 using http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/flashplay er11-3/flashplayer11-3_p2_playerglobal_041812.swc
    but still run into the same problem below:
    I can't go through the steps to create a new Flex Mobile Project because of the following error "Air 3.3 Beta does not support mobile projects".
    However, I have no problem creating a Flex Project (Web & AIR) and ActionScript Mobile Project.

  • Does Airport Express support multiple ethernet connections via a switch?

    If I use the following configuration, with the Airport Express extending my network, will it handle multiple devices connected via a switch?
    Modem---Airport Extreme- - -802.11n- - -Airport Express---Switch---multiple devices (eg. network printer and iMac).
    Or do I need to use a second Airport Extreme instead?

    It works for me—even when the AirPort Express device is configured to extend the wireless network created by the AirPort Extreme router.

  • Does OC4J support RMI/IIOP connections ?

    Hi,
    I have only one question :
    Does OC4J support IIOP connections ?
    I'd like to connect as EJB client to OLAPService on Oracle9i server (CORBA object), but I can't.
    Thanks in advance

    Thanks for your timely post Debu.
    I would like to state that I read and followed the guides (same files as those ponted by the links you just provided) and tried this:
    1. Sample J2EE Application using ORMI in OC4J Standalone (this works ok)
    2. Same but now using ORMIS (this also works fine)
    3. Tried same J2EE App using IIOP; took these steps:
    3.1 commented out the rmi.xml security lines,
    3.2 enabled ports in internal-settings.xml,
    3.3 changed the jndi.properties - now using corbaname URL,
    3.4 enabled the IIOP stub generation in the JVM settings at oc4j startup, and finally
    3.5 deployed the EAR using the generateIIOP flag.
    The result: the exception I posted above
    4. Tried with IIOP/SSL, did these steps:
    4.1 configured the keystore settings in both internal-settings.xml and ejb_sec.properties
    4.2 and added <ior-security-config> config elements to orion-ejb-jar.xml.
    The exception here is a little bit different:
    client started...
    In IIOPInitialContextFactory ..
    In IIOPInitialContextFactory getInitialContext..
    1/08/2006 07:07:10 PM com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl <init>
    ADVERTENCIA: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:74)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.createConnection(SocketFactoryContactInfoImpl.java:77)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:214)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:345)
    at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl(CNCtx.java:321)
    at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:247)
    at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx.java:85)
    at com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURLIgnoreRest(iiopURLContextFactory.java:56)
    at com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURL(iiopURLContextFactory.java:61)
    at com.sun.jndi.url.iiop.iiopURLContextFactory.getObjectInstance(iiopURLContextFactory.java:34)
    at oracle.j2ee.iiop.IIOPInitialContextFactory.getInitialContext(IIOPInitialContextFactory.java:76)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:175)
    at hello.HelloClient.main(HelloClient.java:31)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
    at oracle.oc4j.corba.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:398)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:58)
    ... 19 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at oracle.oc4j.corba.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:389)
    ... 20 more
    javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 20
          at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:362)
          at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl(CNCtx.java:321)
          at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:247)
          at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx.java:85)
          at com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURLIgnoreRest(iiopURLContextFactory.java:56)
          at com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURL(iiopURLContextFactory.java:61)
          at com.sun.jndi.url.iiop.iiopURLContextFactory.getObjectInstance(iiopURLContextFactory.java:34)
          at oracle.j2ee.iiop.IIOPInitialContextFactory.getInitialContext(IIOPInitialContextFactory.java:76)
          at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
          at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
          at javax.naming.InitialContext.init(InitialContext.java:219)
          at javax.naming.InitialContext.<init>(InitialContext.java:175)
          at hello.HelloClient.main(HelloClient.java:31)
      Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
          at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739)
          at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
          at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:74)
          at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.createConnection(SocketFactoryContactInfoImpl.java:77)
          at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
          at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:121)
          at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:214)
          at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
          at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
          at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:345)
          ... 12 more
      Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
          at oracle.oc4j.corba.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:398)
          at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:58)
          ... 19 more
      Caused by: java.net.ConnectException: Connection refused: connect
          at sun.nio.ch.Net.connect(Native Method)
          at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
          at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
          at oracle.oc4j.corba.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:389)
          ... 20 more
      NamingException: Cannot connect to ORB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Does Siri support multiple languages

    I live and work in a multilingual environment. As a result, I often have to send SMS and emails in English, French, Italian or Portuguese. With the keyboard, I am used to switch language with the globe key next to the spacebar. With Siri however I am not sure how this can work. When it does eventually support the above languages, will I be able to use different languages without changing the whole telephone setting? Can one say "send email to my wife: buongiorno amore"? It would be a real letdown if the coolest feature of iOS 5 were unusable to me...
    Thanks

    Yes, exactly. I am using Siri in English since she gets better along with the rather easy synthax (compared to German). Unfortunately you cannot switch directly when writing a message. For example, if you tell her to "write a message to my wife", you may immediately dictate what you want to say but only in English. If I want to write her in German instead, I will have to tap once on the message area. She then instantly changes to German (or any other language that was used as keyboard before) which also affects Siri's voice recognition. But one tap is reasonable.

  • How Does FrameMaker Support XML Schemas?

    Hi All,
    I'm wondering how FM supports XML Schemas. I need to validate the uniqnuess of the value of an element in my XML. Let's say I have an XML like this one:
    <Param>
         <name>Parameter 1 name</name>
         <description>Parameter 1 description</description>
         <code>12345</code>
    </Param>
    <Param>
         <name>Parameter 2 name</name>
         <description>Parameter 2 description</description>
         <code>6789</code>
    </Param>
    The value of <code> must be unique throughout the XML file. As far as I know, I can add a validation of the uniqnuess of <code> into my XML schema. The question is whether this uniqnuess check will be supported by FM.
    Any advice is appreciated.
    Thank you very much!

    It should (though I have not tested it myself). Framemaker 11 uses XercesC 2.7 for parsing the incoming/outgoing XML and it supports unique constrains. EDD cannot check the possible violation, however.
    BR, Martti

  • PM : Does PM support multiple  Class types for Equipment classification

    Hi,
        Do  Plant maintenance support multiple class types for the classification for the equipments.
    Our  Customer has created his own class type other than 002(Equipment) for the classification and wants to know weather PM supports such class types or not.
    Thanks and Regards,
    Anuj
    Edited by: Anuj Goyal on Mar 13, 2008 10:16 AM

    hi
    i think you can use the your own class type provided you have done all the settings related to the standard class type 002,also if you have create your class type your standard class type will be changed to either the newly created one or 002 based on settings made by you
    regards
    thyagarajan

  • Designer 6.0 does not support multiple homes

    I installed oracle 8i database version 8.1.6 on my windows NT 4.0 laptop. I need to also install designer 20000 version 6.0 on the same laptop but I get the following errors.
    The location e:\oracle \oracle8i is already used as an oracle home for oracle 816 production. It can not be uses as an oracle home for NT.
    I then designate a new directory and home name, and get the following errror.
    Designer release 6.0 does not support multple home installations and suggest me to change it back to my first choice.
    How do I get both the oracle database and designer installed on the same machine without Oracle home problem?
    null

    Hi,
    Install designer 6 first in DeFAULT_HOME, directory ORANT. After you've done that, install Oracle 816.
    See reply to Davephobbs
    HTH
    Martin

Maybe you are looking for

  • ICloud has stopped email working on my iPad.

    Emails are fine on the Mac Mini, but nothing is going to or from the iPad. Any suggestions?

  • CCM Publisher issue

    wh have CCM version5.1 and the publisher keeps on rebooting. Any idea why this could be happening or has anyone come across this problem before

  • Problem with Integration Essbase cube with obiee

    Hi Everyone, I am in a OBIEE where i need to use Essbase cubes as source for generating OBIEE reports.I am able to import the cube successfuly into Physical layer and when i drag it into BMM layer its getting splitted up into Facts,dimensions and hie

  • To debug a customer exit

    hi guys, how do i debug a variable customer exit, i hve been to the particular include program, do i just put a break-point on the variable i want to look at.... or some infinite loop ? thanks your help will be greatly appreciated

  • Exchange User Mailbox Database Group Lookup Reconciliation-parameters

    Hi everyone, I want to execute Exchange User Mailbox Database Group Lookup Reconciliation. Parameters : Code Key Attribute : __NAME__ (default) Decode Attribute : __NAME__ (default) IT Resource Name : Exchange IT Resource Lookup Name : Lookup.Exchang