Using SQL as query type from the mapping workbench

Hi
We are upgrading a project from toplink 2.x to 9.03. The old used the java builder syntax for the finders, this is not supported anymore in 9.03. Therefore we need to convert these finders to either EBQL or SQL.
As our developers here mostly know standard SQL we'll like to use this. But in the toplink doc's we cant find any good examples how to use this. All the examples are also only with EBQL.
The questions is mostly how do you define the bind parameters in the SQL query string in the workbench.
select * from user where user.username = ?
select * from user where user.username = ?1
select * from user where user.username = #param1
select * from user where user.username = #param1#
select * from user where user.username = #1
select * from user where user.username = #1#
Any help?
/Denver

What do you mean by "The old used the java builder syntax for the finders, this is not supported anymore in 9.03"?
TopLink still absolutely supports the Java builder syntax! In 9.03 we added Mapping Workbench support but just for EJBQL and SQL for that release -- you can still use the expression builder in code! In the upcoming 9.04 I've seen that you can use the builder syntax in the mapping workbench too!
- Don

Similar Messages

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

  • Use original database logon information from the report

    When publishing reports to crystal reports server, the data source password is missing and reports as set to 'prompt the user for database logon'
    Here is a description of our report creation process and how we currently set the db password.
    Reports are created using Crystal Reports Designer XI Professional.
    The data source is set up through the report wizard or manually to a sql db
    using either a sql login or integrated authentication
    the reports are then publish through the designer by going to File Save As - Choose Enterprise - then give
    report server info.
    From the CMC (crystal report server XI r2)
    we go to the folder location,
    select the report then go to the process tab
    click on database sub tab.
    we then set the database password and change the "When viewing reprot" setting to "Use same database logon as when report is run"
    reports are run both ondemand through links to infoview and through a variaty of schedules.
    How can we publish the reports to the Report Server without having to go to the CMC and set the database password, it doesnt' matter if we use sql login or integrated authentication, the result is the same.

    Hi Mario,
    some things you may want to consider.
    1) Setting up SSO to the DB. If your install is on windows and DB is SQL or Oracle, you can integrate your logon with windows and pass that all the way down to the DB when viewing the report. This is fairly complex to set up initially but simple to use from then on.
    2) DBuser and DBpass. You can populate user/pw fields associated with user account and then pass this value down to the DB. This can work with any DB instead of just SQL and Oracle. This doesn't appear to be documented yet. You may need to open a message with support if you need more details.
    3) Create reports based of a universe. This will use the universe connection (set per universe) to access the DB. For more on this post a question in the crystal reports forums.
    The kerberos SSO to the DB is documented in the [XI 3.0 admin guide|http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_bip_admin_en.pdf]
    regards,
    Tim

  • SharePoint 2013 - Server Error in '/' Application - This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database

    Hi
    After I ran SharePoint configuration wizard successfully to upgrade to SharePoint 2013 / SP1.
    I can open Central Administration site just fine.
    but now when I open any Site collection,  I got this error.
    Server Error in '/' Application
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration
    Wizard, located on the Start menu in Microsoft SharePoint 2010 Products
    I have restarted all the servers:  SQL server, WFE and APP servers but still cann't get this resolve.
    Services on all servers are running,  IIS - application pools are running.
    Can someone help with where that could be a problem or if there is a solution.
    Thanks in advance for your comments or advices.
    Swanl

    Please verify the followings:
    Make sure that from the SharePoint front end and application servers that you can ping your SQL server.
    Make sure that your Farm account has permission to the configuration database.
    Lastly verify that your database didn't for some reasons go into recovery mode.
    once everything is fine and you are still having issues, restart the SQL host service on the SQL server.
    Once the service is restarted you will need to reboot Central Admin and then your front end servers.
    In addition, as you built your farm inside the firewall, please disable the firwall, or create rules for SQL Server service in the firwall on SQL server.
    More information about creating rules in firewall, please refer to the following posts: http://social.technet.microsoft.com/Forums/en-US/c5d4d0d0-9a3b-4431-8150-17ccfbc6fb82/can-not-create-data-source-to-an-sql-server http://www.mssqltips.com/sqlservertip/1929/configure-windows-firewall-to-work-with-sql-server/
    Here is a similar post for you to take a look at: http://social.technet.microsoft.com/Forums/en-US/ea54e26c-1728-48d4-b2c5-2a3376a1082c/this-operation-can-be-performed-only-on-a-computer-that-is-joined-to-a-server-farm-by-users-who-have?forum=sharepointgeneral 
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • HT5429 Is there a way to turn off the turn-by-turn navigation voice from the map app itself without ending the directions?

    I know that it is possible to turn off the voice for turn-by-turn directions completely (in the settings menu), but is there a way to temporarily silence the voice from the maps app itself? For example, if I am driving to the freeway from my house I know how to get there and do not want my phone talking to me, but I would like to keep the directions active and turn on the voice once I need it later in the directions. Is there an easy way to do this without going to the settings app each time?

    I don't think there's any way to do it, but I'd like that feature as well: on long trips I listen to an audiobook and when I'm travelling routes that I already know well, I mostly want to use navigation to route around any traffic that might occur.
    In both cases, the voice directions aren't welcome, and I can get by with the on-screen display… and in other GPS navigation software or hardware I've had, muting the voice was an easily accessed option.  (Garmin USA on the iPhone, for example, has a 'mute' icon available right on the maps display).
    I've requested that feature at http://www.apple.com/feedback/iphone.html - you may wish to do the same.

  • FM or any method required to fecth the course type from the curriculum type

    Hi,
    I have a requirement where in i need to fetch all the couse type and curriculum types from the given course program (the given course program has various course program block )
    i have made use of the FM  
    " LSO_CP_TRAININGSEQUENCE_GET " which also helps me to get the same along with block type, block id ,elem_group and elem_default .
    As we know the curriculum type so fetched has the course types in it ,
    so can you please suggest me any method to fetch the block type, block id ,elem_group and elem_default along with the coursetype and coursetype id ???
    Thanks in advance
    Archana

    To change the materila type for any material by using MMAM,Please check the following things:
    - Number rage for both material type should be same
    - Account determination or valuation class for both material type should be same
    - there should not be any open purchasing documents for this material
    -Account Category refernce assigned for both the material type should be same so tht the accounting determination wrt to material type is not effected
    -No Stock should exist .

  • Downloads - I want to open some PDFs/other file types from the internet but not have to save them; I can't figure out how to view them and close them without having to save them first.

    Downloads - I want to open some PDFs/other file types from the internet but not have to save them. I can't figure out how to view them and close them without having to save them first. When I click on a file, the downloads box opens and depending on the setting, it auto saves the file or asks me where to save the file. What if I don't want to save it anywhere, I just want to view it and close it?

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Hide content type from the new menu but show in edit form

    SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document
    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.
    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.
    Any idea how can I hide content type from the new button but show in edit form?

    Hi,
    Whether you use SharePoint online 2013.
    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.
    To accomplish your qequirement, we need to use css code:
    style <style type="text/css">
    ul.ms-cui-menusection-items32 li:nth-child(4) {
    display: none !important;
    </style>
    perhaps your environment is different with mine, you need to make a little change to the code. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • How to get the query values from the url in a servlet and pass them to jsp

    ok..this is the situation...
    all applications are routed through a login page...
    so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
    so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

    ok..this is the situation...Sounds like you have a bad design on your hands.
    You're going to send passwords in a GET request as clear text? Nice security there.
    Why not start with basic security and work your way up?
    %

  • Everytime I purchase using iTunes on my home computer it asks me to verify my c/card, and states "Your Apple ID, ..., was just used to purchase ... from the iTunes Store on a computer or device that had not previously been associated with that Apple ID.

    When i use my laptop to make an iTunes store purchase, it always asks me to verify my account details by entering my credit card verification number. After i do this i then receive an email stating "Your Apple ID, ..., was just used to purchase ... from the iTunes Store on a computer or device that had not previously been associated with that Apple ID."
    My Laptop is my home device and apart from purchasing app's on my iphone 4, i only use my laptop to make itunes purchases.

    I'm having a similar problem.  I had previously (over a year ago) purchased 2 episodes of Law &amp; Order.  Then about 2 months ago, I purchased the 3rd season of Sons of Anarchy.  When I downloaded these episodes to my iPad, about a dozen full seasons of various shows popped up, too.  No money was removed from my iTunes account &amp; theses particular shows aren't in my iTunes library on my desktop.  I've tried every which way to delete them from my ipad, but can't.  I went to the Apple store &amp; they suggested I contact expresslane.apple.com for help.  I submitted my problem, via email Friday, as they asked, but have not received any response.  Any suggestions on how to get rid of these "phantoms?".

  • I am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    i am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. on it. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    No.
    iTunes terms of service:
    The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.

  • Itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?

    ive recently updated, itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?if i transfer the movies from the external to the laptop they will add to the library without any problem so theres no issue with the laptop but when i go to add file in itunes i can path to the external but as soon as i select the file nothing happens, just goes back to itunes

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • How to install and use a plug-in downloaded from the apple site?

    how to install and use a plug-in downloaded from the apple site?

    Emelie,
    which plug-in do you want to install?
    some of the plug-ins come with an installer on the disk image, you click the installer and it will install it in its proper location.
    For others you move the plug-in into to System Library or your User Library:
      Your Hard disk  > Library > Application Support >Aperture > Plug-Ins > Edit
    or
    Your Home Folder > Library > Application Support >Aperture > Plug-Ins > Edit
    If it is an "Edit" plug-in, it goes into the "Edit" subfolder, "Export" plug-ins into the "Export" subfolder.
    You can tell by the extension, what kind of plug-in it is.
    E.G. BorderFX.ApertureExport is an export plug-in, BorderFXEditPlugin.ApertureEdit an edit plug-in.
    Regards
    Léonie
    P.S. In OS Lion the Libraries are hidden by default: To reveal your User Library activate the Finder and select from the main Finder menu:
        Finder >  Go , then hold down the ⌥-option-key, untill the Library appears in the drop.down menu.
    To show the System Library:
         Finder >  Go > Go to Folder
    then enter   / Library

Maybe you are looking for