Object Relational Mapping - How to? - With SQLJ? - What brings the future?

Hi there,
we are developing applications for masterdata
maintainance and masks with fast user interaction using a two-tier architektur and a layered java application on the client.
Currently we are using TOPLink for the ORM stuff.
As we need a simple and efficient way to encapsulate gui stuff from database interaction i am interessted in SQLJ for the descripted purpose.
These are my questions:
1. Can I use SQLJ with a Oracle database lower than 8i
2. Is there a runtime fee for SQLJ?
3. How does SQLJ relate to the app server
hpye?
4. Where can I get SQLJ?
5. Do I need JDeveloper in combination with SQLJ or can I use any other IDE?
Thanks for your input.
Regards,
Wolfgang Rothmayer.

SQLJ is actually orthogonal to use of ORM. It is an embedded language API for (static) SQL database access in contrast to JDBC.
If you are using SQL Object types (Oracle 8i and later) then there is the JPublisher tool to map these into Java classes.
Oracle also provides the BC4J (Business Components for Java) product for object-relational access. This is used mostly in conjunction with JDeveloper.
So from an ORM perspective you would not be asking for SQLJ.
To the SQLJ-specific questions:
1. Yes. SQLJ relies on Oracle JDBC for database access. Oracle 7.2 and later can be accessed.
2. No.
3. SQLJ can be used in any tier - just like JDBC can.
4. In the OTN download area. It is also part of all Oracle database releases since 8.1.5.
5. SQLJ comes with a command line interface (similar to Javac). It is also directly supported in the Oracle server-side JavaVM, which has an integrated Java compiler and SQLJ translator.
IBM VisualAge for Java has added support for SQLJ. For other IDEs you would be on your own, though I have heard that JBuilder users have been able to integrate SQLJ in their IDE (if somebody sends us a recipe for using SQLJ in their favorite IDE, we'll be happy to include that in future distributions). SQLJ could be integrated either through the commandline, or -for tighter support- through its IDE interface package in sqlj.framework.ide.

Similar Messages

  • JPA Object-Relational Mapping: how to deal with self-related mapping?

    ignore the post.
    sorry for my stupidity
    ==
    Hello,
    Suppose I have a class nemed Group, which can have sub-groups. It is defined like:
    @Entity
    Class Group{
    private int id;
    private String name;
    private Group parent; //M-1 mapping
    The problem is Group is mapped to itself:
    child group -- parent group
    M : 1
    How JPA supports that kind of relationship? Can I put both
    @Many-to-One and @One-to-Many over parent field like:
    @Many-to-One
    @One-to-Many
    private Group parent;
    Thanks a lot!
    Message was edited by:
    javasprinter

    One possibility could be the following - (included annotation mappings):
    @Entity
    Class Group{
    private int id; // probably should change to Integer to account for null data
    private String name;
    @ManyToOne
    @JoinColumn(name = "PARENT_GROUP_FK")
    private Group parent; //M-1 mapping
    @OneToMany
    @JoinTable ( name = "SUB_GROUPS",
    joinColumns = { @JoinColumn(name = "PARENT_GROUP_ID")},
    inverseJoinColumns = {@JoinColumn(name = "CHILD_GROUP_ID")}
    private List subGroups;
    Tables -
    Group - columns - id, name, parent_group_fk
    Sub_groups - columns - parent_group_id, child_group_id
    The above maps a unidirectional relationship from parent group to child groups, but that really isn't a big deal because you can always get the parent from the parent group id.
    I'm sure this isn't the best way, but it worked for me. HTH.

  • Need help in Object-Relational Mapping

    I'm writing a simple two-tiered business application with Swing application on the client side and a DBMS on the server side. To make my client code more maintainable, I decided to create Business Objects instead of having my client accessing the database directly via SQL. For simplicity, I'm not using any features from the J2EE framework, and the Business Objects will be hosted on the client side, with one-to-one mapping to tables in the database. Since this is my first attempt in Object-Relational Mapping, I'm faced with the following problems:
    1. What kind of methods are appropriate for business objects? For example, if I have a Machine and Employee entity. A Machine is owned by an employee, and this is represented in the DB by storing the employee ID (not the name) as a foreign key in the Machine table. Let's say in the user interface I have a table that needs to display the list of Machines, but instead of displaying the owner employee's ID, I want to display the owner employee's name by doing a join select. Should the findMachines() method always perform a join select to get owner's name and store it in the Machine object which is returned, or should findMachines() simply return the owner's ID so the UI will need to make another SQL call (through the Employee object) to get the employee's name? The latter is more elegant, but would it be horribly inefficient if there are lots of machines to be displayed (and for each machine we make a separate select call to get the owner's name).

    Business objects should be separate from how they're persisted.
    When you say object-relational mapping, do you mean a tool like Hibernate? Or are you writing your own persistence layer using JDBC and SQL?
    I'd recommend that you read about the Data Access Object pattern and keep the persistence code out of the business objects themselves:
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    url=http://www-106.ibm.com/developerworks/java/library/j-dao/

  • Need clarification - Object Relational Mapping

    Folks
    I have searched internet , but I could find a simple answer .
    I am preparing for my Interview. I just want to reply for this question in a very simple answer
    if the employer asked me what is Object Relational Mapping and Explain Cascade and the possible values .
    The above question in the context of " Hibernate " .
    I am not sure if this is the correct forum category I am asking , please guide me .
    Thanks
    Matt

    The best simple answer is to say "I have no idea about those terms but I am eager to learn".
    There is no simple answer that will give the impression you know about such stuff when you
    don't, that will not expose you immediately to great embarrassment if they pose the simplest
    followup question.

  • Enhydra  DODS - Open Source Object/Relational Mapping Tool from Enhydra

    Hi all,
    I just want to inform you that the final version 5.1 of DODS is released.
    Data Object Design Studio is an open source Object/Relational mapping tool.
    Based on XML data model descriptions (DOML files) SQL DDL, sophisticated Java O/R code and documentation (HTML, pdf, XMI) is generated automatically using a generator GUI, by Ant tasks or from within your IDE of choice (using Kelp).
    The generated Java code provides a lot of possibilities for runtime optimization (DO LRU caching, Query LRU caching, cache initialization, lazyloading,...).
    DODS can be used with or without the Enhydra application server.
    DODS Development Team
    Home page http://dods.enhydra.org
    Objectweb project http://forge.objectweb.org/projects/dods
    Download page http://forge.objectweb.org/project/showfiles.php?group_id=61

    Hi Davide,
    SAP doesn't have proprietary O/R tool but it supports JDO 1.0 standard and Entity Beans as part of J2EE 1.3.
    Regards,
    Avi

  • Object services for Object relational Mapping

    Hello everyone,
    The Object Services of ABAP Objects can create the corresponding Object Model from existing database tables. Is it either capable to carry out an Object relational mapping, just like Hibernate does forJava.
    Thanks a lot.

    ?

  • ANN: Eclipse EJB 3.0 Object-Relational Mapping Project Requirements posted

    A document that presents an intitial feature and use case list for the early milestones of the Eclipse EJB 3.0 Object/Relational Mapping project has been posted to the project newsgroup (news://news.eclipse.org/eclipse.technology.ejb-orm). It also demonstrates a set of user interface components for editing EJB 3.0 Entities. The document covers the basics and is designed to illustrate the concept. It is in no way comprehensive. For example, it doesn't thoroughly cover the editing of ORM xml descriptors although this is an important requirement for the project. ORM xml support will be detailed in coming revisions, and slated for future milestones.
    The purpose of this document is to invite comment on the approach. If you are interested in EJB 3.0 Entity support in Eclipse please give the doc a look over and post your feedback to the EJB 3.0 Object-Relational Mapping Project newsgroup.
    Newsgroup: news://news.eclipse.org/eclipse.technology.ejb-orm
    Simple Web Interface http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.ejb-orm
    --Shaun Smith
    Project Overview:
    The goal of this project is to add comprehensive support to the Eclipse Project for the definition and editing of Object-Relational (O/R) mappings for EJB 3.0 Entity Beans. EJB 3.0 O/R mapping support will focus on minimizing the complexity of mapping by providing creation and automated initial mapping wizards, and programming assistance such as dynamic problem identification. The implementation will be extensible so third party vendors can add to its functionality.
    Project Proposal:
    http://www.eclipse.org/proposals/eclipse-ejb30-orm/index.html

    A document that presents an intitial feature and use case list for the early milestones of the Eclipse EJB 3.0 Object/Relational Mapping project has been posted to the project newsgroup (news://news.eclipse.org/eclipse.technology.ejb-orm). It also demonstrates a set of user interface components for editing EJB 3.0 Entities. The document covers the basics and is designed to illustrate the concept. It is in no way comprehensive. For example, it doesn't thoroughly cover the editing of ORM xml descriptors although this is an important requirement for the project. ORM xml support will be detailed in coming revisions, and slated for future milestones.
    The purpose of this document is to invite comment on the approach. If you are interested in EJB 3.0 Entity support in Eclipse please give the doc a look over and post your feedback to the EJB 3.0 Object-Relational Mapping Project newsgroup.
    Newsgroup: news://news.eclipse.org/eclipse.technology.ejb-orm
    Simple Web Interface http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.ejb-orm
    --Shaun Smith
    Project Overview:
    The goal of this project is to add comprehensive support to the Eclipse Project for the definition and editing of Object-Relational (O/R) mappings for EJB 3.0 Entity Beans. EJB 3.0 O/R mapping support will focus on minimizing the complexity of mapping by providing creation and automated initial mapping wizards, and programming assistance such as dynamic problem identification. The implementation will be extensible so third party vendors can add to its functionality.
    Project Proposal:
    http://www.eclipse.org/proposals/eclipse-ejb30-orm/index.html

  • NetWeaver Object/Relational Mapping tool

    I've read the nice article <i>Using Hibernate on SAP WAS</i> by Peter Mayringer:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2ae0614a-0601-0010-a491-a9a635f06613
    Just a curiosity: Is there a SAP's proprietary NetWeaver Object/Relational Mapping tool, similar to the Hibernate open source project?
    Davide

    Hi Davide,
    SAP doesn't have proprietary O/R tool but it supports JDO 1.0 standard and Entity Beans as part of J2EE 1.3.
    Regards,
    Avi

  • Which object-relational mapping tool is the best for Oracle Coherence?

    Which object-relational mapping tool is the best for Oracle Coherence?
    My application is read-and-write-intensive. Which tool is most suitable for this application?
    TopLink essentials, TopLink, Eclipse or Hibernate?
    Thank you

    I would pick Hibernate mainly because of its popularity and wide knowledge base.
    Coherence has provided some documentation for the integration.
    http://download.oracle.com/docs/cd/E14526_01/coh.350/e14537/usehibernateascoh.htm#CEGFEFJH
    If you have the schema in database, myEclipse can provide you hibernate bindings by reverse engineering.

  • HT4061 my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • I've installed LR on my new Mac - How do I find/what is the name of the file that opens to bring up my existing photos (on my external hd)?

    I've installed LR on my new Mac - How do I find/what is the name of the file that opens to bring up my existing photos (on my external hd)?

    Bookmarks and history are stored together in your profile folder in a database file named places.sqlite. These articles should help with restoring as much or as little of your other profile as you like:
    Locating the folder: [https://support.mozilla.com/en-US/kb/Profiles Profiles | How to | Firefox Help]
    The following article has suggestions for recovering bookmarks: [http://support.mozilla.com/en-US/kb/Lost%20Bookmarks Lost Bookmarks | Troubleshooting | Firefox Help].
    To move more settings, see: [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • How to find out what is the lock key for the computer

    How to find out what is the lock key for the computer?

    You don't.
    If you forgot or lost the password, all you can practically do is reset it.
    The manner in which you do so depends on what version of OS X you are running. The older versions utilize the reset password utility on your recovery/re-installation disk/drive.
    On Lion, you use the following technique to reset the Administrators password:
    Boot to your Lion Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

  • How can L identify what are the not null fields of a table in a stored procedure ?

    How can L identify what are the not null fields of a table in a stored procedure ?

    You could query the data dictionary:
    SELECT column_name
    FROM all_tab_columns
    WHERE owner = '...'
    AND table_name = '...'
    AND nullable = 'N'

  • What is Sizing in XI ? How to do ? What is the Use ?

    Hi  All
          I am learning XI ...it is excellent tool...more interesting
          My Question is what is sizing  in XI ? How to that ? What are the advantages?
          How to decide weather that project need sizing or not ?
         More inputs on this pl.....i searched in SDN but not full information
    Awaiting for valuable responses
    regards
    Kiranlvs

    HI,
    The key information for sizing is the number and the size of messages the Integration Engine has to process in a given scenario.
    The sizing model is based on the following preconditions:
    - We only consider “direct communication”. Possible local proxy servers tunneling messages to and from the Integration Servers are not considered.
    - We assume that data is persisted twice, once for each of two asynchronous steps (the data is initially persisted after it is received and then again after processing). If data is persisted more than twice (for example, for debugging purposes), more disk space will be required.
    - The measurements are calculated against an average CPU consumption of 70% (see the general sizing procedure at SAP1).
    - The sizing guidelines do not include additional requirements caused by data archiving, data deletion or reorganization.
    - Sizing is for SAP Web Application Server 6.40.
    - Processing by the Adapter Framework is taken into account.
    See below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/72e2bb90-0301-0010-e883-c390ad8a975a
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/150ac490-0201-0010-0cb3-dee8d5262778
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b65bb7d4503
    Quick Sizer (http://service.sap.com/quicksizing). The sizing guidelines include an initial and an advanced sizing based on different possible scenario definitions.
    All you need to create a sizing project is a valid SAP customer number and access to the Service Marketplace
    Regards
    Chilla..

  • What is the Future for MAEMO 5 Ahead ?

    Hello Everyone, Greetings from India !!
    I know for the fact that this forum is mostly for people who have already bought the N900 and who may have some technical queries about their product. But with the N900 just been launched in this part of the world, people here have just started to understand, explore and use it. So I am one person who is just about to, on the verge of buying the N900 but have some concerns...
    Maybe this question would have been discussed here a lot of time, but since I am new to this community, I thought I will try to know this from you guys. With Meego already been announced as Nokia's new OS for Tablets and smart phones. What is the Future left for MAEMO 5. Will there be no future support, Firmware updates for MAEMO as Nokia now, has decided to Abandon MAEMO. Will there be any Upgrade in Version for MAEMO. If some one like me who has liked the N900 in its current state also, but is worried about the MAEMO 5 Future in terms of version upgrade and firmware update. when compared to Android, which keeps coming out with improvised versions...Ver 1.6, 2.1 and now 2.2 slated to release... How should one look at this entire thing..
    Thanks in Advance. 

    Hi,
    I will be purchasing this handset next month too.
    My opinion is that due to the fast moving technology of this market new handsets,o.s and software will always be round the corner.
    To hold off to see whats round the corner would make you end up not getting anything new for fear of not getting the next new thing.
    The beauty of the n900 is that it wide open for software etc with someone always out there providing newly written stuff.
    My advice is to do your homework and read up on all the info , ends users views and if the fone/internet tablet still ticks all the boxes you need then buy it.
    Just remember its an internet tablet with making calls technology added on so it wont have all the usual options you would get on a standard handset.
    Perform a search on here and you will see lots of interesting threads what will answer most of your questions you could have with the n900.
    Nokia Lumia 520
     iphone 6 Plus.
    Be happy !!

Maybe you are looking for

  • Desktop PC with Airport Express connected to another router

    Hi, I'm new to the wireless world. I have an exsisting wired network with wired connections. The router is a Belkin which also does wireless. I have another desktop computer which I cannot get wires run to so easily. My idea is to use my Airport expr

  • No country information has been maintained for US

    We have run into an issue of an older delivery going on Embargo block for a domestic order, shipping within the US. Here is what we have in place for the US. Do I need to make a configuration change to prevent domestic orders from going on Embargo bl

  • The FTP protocol: How does the AE manage inbound packets?

    I've noticed the following with resect to how the AE handles NAT port forwarding for the FTP protocol. 1. Forwarding for FTP service seems to only work if the WAN port is 21, e.g. map 21 -> 21 works, 2121 -> 21, does not work (packets seem to be drop

  • I can't burn dvds on my mac book pro?  anyone else?

    I can't burn dvds on my macbook pro?  I've bought several brands of them in -r & +r format.  no luck.  they don't even appear on the desktop as an icon when I insert them. I can eject them via disk utility.   anyone else had this issue and solved it?

  • Too much time taken for Adding/Updating records in netscape LDAP

    Hi, I am a newbie in ldap and have a text file with 80,000 users information in it, which i need to add into LDAP. I am using netscape LDAP 5.1 as my directory server. The time that is being taken to add records into LDAP, is like 3 minutes for each