Entities from tables (JPA EJB 3.0) creation problem

I have a problem to get all the entities created in JDev 10.1.3.3 on UBuntu Linux, JDK 1.5.11. I think that some relations missing also. When I try to connect from my Win XP machine to the same DB (Oracle XE) everything is fine. JDev on Win machine uses JDK 1.5.06. Maybe the problem is JDK version? Any advice?
Thanks in advance

Thank you, Andrej. It appears the tutorial has not been updated for the version of JDev I have. I was able to get a few steps further down in the tutorial, but hit more stumbling blocks. This probably isn't something for a true java newbie to try. I'll see if I can find something more in line with my experience (or lack thereof).
Have a great evening.

Similar Messages

  • Newbie - JDev Missing Entities from Tables (JPA/EJB 3.0) Option

    I'm trying to run through the 'Introduction to EJB3.0 Using Oracle JDeveloper and OC4J' tutorial. One of the early steps says to select the 'Entities from Tables' option under the Business Tier/EJB category. I have six options available - CMP Entity Beans from Tables, EJB Data Control Wizard, EJB Diagram for EJB1.1, 2.0 and 2.1, Entity Bean, Message-Driven Bean, and Session Bean.
    I have JDev Studio Edition Verion 10.1.3.0.4 (SU5) - Build JDEVADF_10.1.3_NT_060125.0900.3673
    I just downloaded it from OTN last week. <I>Did I miss a step somewhere?</I>

    Thank you, Andrej. It appears the tutorial has not been updated for the version of JDev I have. I was able to get a few steps further down in the tutorial, but hit more stumbling blocks. This probably isn't something for a true java newbie to try. I'll see if I can find something more in line with my experience (or lack thereof).
    Have a great evening.

  • Bufg in entities from tables wizard

    Environment Win XP 5.1.2600 Spanish; Jdeveloper 10132 with this table
    SQL> desc linea;
    Name                                      Null?    Type
    CODPROV                             NOT NULL VARCHAR2(3)
    CODLINE                               NOT NULL VARCHAR2(3)
    LINEA                                    NOT NULL VARCHAR2(30)
    CODSLINE                                             NUMBER(5)
    ESTADO                                                 CHAR(1)Codprov,Codline is PK
    The entities from tables wizard generates:
    package model;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.NamedQuery;
    @Entity
    @NamedQuery(name = "Linea.findAll", query = "select o from Linea o")
    public class Linea implements Serializable {
        public Linea() {
    package model;
    import java.io.Serializable;
    public class LineaPK implements Serializable {
        public LineaPK() {
        public boolean equals(Object other) {
            if (other instanceof LineaPK) {
                final LineaPK otherLineaPK = (LineaPK) other;
                final boolean areEqual = true;
                return areEqual;
            return false;
        public int hashCode() {
            return super.hashCode();
    }The same with Jdev 10133. any ideas?? the code for the wizard have not changed between 10132 and 10133?
    Thanks
    Alex Urzola R.

    It works for hr.departments; indeed the wizards generates some other entities in my project but generates this empty class with that table "Lineas" (which have a composite key) and when i ask to generate several entities aside with this one, it skip the generation of some other entity also.
    Note I'm Using JDK 1.5.0_08-b03 which is NOT part of neither 10132 nor 10133 dist.

  • Entities from (ms sql) tables = crash

    Hi,
    I'm trying to create entities from tables in ms sql server, but the wizard exits with no error message and the only entity generated has no members. The only message displayed in the EJB log is "Generating classes for Entity bean Name..."
    Is there any log where I could see what the problem is?
    RGS
    Jernej

    Jernej,
    Did you try running jdev\bin\jdev.exe from a console window - it should show any stack traces there.
    John

  • Creating Entities from database tables ?

    Hi everyone,
    I am trying to prpare an entity relationship diagrams for a small application that about 5 or 6 tables. Can someone please let me know how I can reverse engineer or make entities from tables ?
    Thanks
    IQ

    Hi there,
    I have checked to see that I" am using the correct container. Also this is a fresh Designer installation so there are not previous entities.
    I however notice a few warningas and and error. I am sure this should not be the cause for me not seeing tables in the table to entoty retrofit but I may be wrong. I am seing the following warnings/ errors. Is this the cause of my problem or could it be something else.
    CDS-15317 Warning: invalid Database User reference ('RCAR') in Database Object Grant to 'RCAR' - ignored
    CDS-15317 Warning: invalid Database User reference ('BOLDING_SHARED') in Database Object Grant to 'BOLDING_SHARED' - ignored
    CDS-15317 Warning: invalid Database User reference ('SKMT') in Database Object Grant - ignored
    CDS-15317 Warning: invalid Role reference ('PASD_USER') in Database Object Grant to 'PASD_USER' - ignored
    CDS-15014 Error: invalid Table reference ('EMPLOYEES') in Foreign Key 'EMP_FK'
    Processing Complete: 1 error(s), 281 warning(s)
    Please advise
    Thanks
    IQ

  • Pages 5.0 removing images from tables.

    After upgrading to Pages 5.0 I now receive a message when opening any file with a table that has images in the cells.  Basically Pages is removing all images from table cells.  Anyone having this problem and is there an easy fix?

    DrBrian, this is what I did to resolve this issue.  I found out that we may still have Pages 09 installed on our systems! Go into Finder - Applications.  If you have a folder titled iWork 09 click it and you may find Pages 09 there.  Double click to open Pages version 09 where you will be able to open all of your files just as they should be. 
    I will not be using the new Pages upgrade.  I have too much time invested in creating documents and templates for my business and I am not willing to re-learn a new package which has much less functionality.  Hope this helps you.

  • JPA @Lob annotation and memory problem

    Hi.
    Is there any way to overcome the memory problem with @Lob types?
    FetchType.LAZY means lazy as it spelled. Am I right?
    And it doesn't mean any stream handling of big sized lobs. For lobs are so big that my physical memory can't hold it.
    @Entity public class Parent implements Serializable {
        @Lob private byte[] big; // what can I do if it is to big to hold in memory?
    }Is there any standard way for this problem?
    I found that openejb serves *@Persistent* annotation for InputStream/Reader for this purpose.
    But I want to know if there is another way for more portability.
    You know what?
    I heard from a JPA spec guy that this problem (maybe it's not a problem) won't even be considered in next version. (2.0?)
    How horrible...
    Is it can be a good think that split the Lob column into a OneToMany children?
    This is the best output, for now, from my head.
    @Entity public class Parent implements Serializable {
        @OneToMany private Collection<Child> children;
    @Entity public class Child implements Serializable {
        @Lob private byte[] chopped; // small enough to fit into memory
    }

    If the Lob is too big for your memory, then you are best off handling whatever processing you need to do on it through raw JDBC. If your only interested on the first n bytes, then you could probably map to something like this using a view the truncate the lob, and map your class to the view instead of the table.
    You should also be able to define your variable as Blob or Clob and get the locator directly. But the locator is tied to the connection, so will not be usable after the connection is returned to the pool. I'm not sure how such a lob could be model if it can't be read into memory, perhaps as some special JPA Lob type that can return a stream on the data by re-querying the lob from the db.
    What exactly to you want to do with the lob?
    -- James : http://www.eclipselink.org

  • How to do a JSP talks with my "EJB from tables" ?

    Hi !!
    I'm new to Jdev.
    I have built a database, using MySql, and I also have built EJB from my tables.
    My EJB are Entity Beans and I have used the Wizard to create it from tables of my data base.
    Every EJB is working well and I have a simple JAVA client application which can use my
    beans to edit data in my database.
    Now I need create JSP pages that will use my beans, to edit my database too.
    So, I have created a new project and in this project I have built a JSP page, in the same workspace
    that has my beans' project.
    But I don't know what must I do to put my JSP page connected with my beans.
    1) What must I do?
    2) Is it possible to put a JSP page talking with a Entity Bean, or it will be necessary to create session beans?
    3) Is my beans' project a BC4J project? If not, how to change my beans' project to this goal?
    Any hint will be very helpful?
    Thanks.
    Rodrigo Pimenta Carvalho.
    Brazil.
    ==============================================================================

    There is a new feature to support this in the 9.0.3 preview release.

  • CMP Beans from Tables: Why does the Container try to create new tables?

    I'm trying to develop an EJB application using JDeveloper on 9iAS. I have several CMPs and have my tables that I want my CMPs to be based on already defined in my DB schema. I want to use CMP but I don't want the Container to create the tables, rather I want the Container to map my CMP EJBs to the already existing tables.
    The issue is:
    While creating these CMP EJBs in JDeveloper I chose the "New Enterprise Java Bean" EJB creation wizard using the option labeled "Container-managed Entity Beans from Tables". My assumption is that this does what I want, because the wizard prompts for a schema and table you want to map to. Then it creates the attributes & getter/setter methods, PK class, etc. all based on the table defintion automatically. Great. So why when I try to run my application do I get error messages for each EJB such as:
    Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
    Warning: Error creating table: ORA-00955: name is already used by an existing object
    Huh?? I thought the idea is that the CMP EJB is mapped to the existing table in my schema. Why is the Container trying to create new tables?? Is this possible? Or am I missing something fundamental about how Containers create and manage CMPs? Or is this just a JDevelop container issue? TIA

    I presume you are getting the problem on application
    deploy? This happens when upon initialization of the application using the built-in OC4J container/app server that is part of JDeveloper. Here is the full messaging:
    [Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
    C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\OraHome1\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\OraHome1\jdev\system\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Copying default deployment descriptor from archive at Q:\CBTCOF\COF_APPLICATION\COF_Project\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\OraHome1\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/Q:/CBTCOF/COF_APPLICATION/COF_Project/classes/ (No previous deployment found)...
    Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
    Warning: Error creating table: ORA-00955: name is already used by an existing object
    [...OTHER SIMILAR ERROR MESSAGES]
    done.
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    If so, in the application.xml file of you
    OC4J instance the is a setting autocreate-tables,
    which by default is true!
    Set it to false as below and that should clear up
    your problem.
    <orion-application autocreate-tables="false"
    default-data-Hmm. I found at least a dozen or so files with that name and set everyone that had this attriute to "false", restarted the OC4J server and still got these errors.

  • JPA EJB generic DAO

    I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
    In my pages I use JSF & Facelet
    Hi All
      In a new project I am going to use JPA / EJB session beans and ADF Faces
      Also I am going to use similar pattern described in below link for a GenericDAO
      and inject instances of Generic EJB into my business EJBs
        http://www.adam-bien.com/roller/abien/entry/generic_crud_service_aka_dao
        https://blogs.oracle.com/theaquarium/entry/generic_jpa_dao_repository_implementation
      In second link some people mentioned this way is old and over simplified
      Any body have any comment / ideas or similar cases
      I don't want use any external open source libraries
    Thanks
    Mohsen

    I've read that article several months ago and didn't get a chance to try it out. However, I did work with Hibernate quite a bit.
    I believe the author would have us replace this:
    public update(Person person){
    with this:
    public void update(T o) {
    In the first function, its obvious that I'm updating a record in the Person table.
    In the second function, I need to have a list of all the possible table names (such as 'Person') to know which tables have an update function associated with it that I can use with the generic function. For example, some tables may be read-only and dont have an update function.
    Normally, the compiler helps you out by providing a dropdown list of functions an object has that you can choose from.
    Likewise, the compiler will have a dropdown list of all the different arguments (signatures) a function has.
    I dont think the generic function will provide this. As an end-user calling up a Hibernate function that you wrote, I want help from the compiler on what my options are. I don't want to dig into the Hibernate configuration file to determine weather update is allowed for a table or not.
    The downside of not using generics of course, is you have to write a DAO with CRUD functions for each and every table in the database (actually, for every graph, but lets not get into that).
    Also, I don't see an example of how the associations between tables is implemented in generics. For example, one to many relationships, etc. A developer may get bogged down trying to get generics to work for all those possiblies (then again, perhaps not, since I didn't try it).
    By the way, I don't see anything about generic DAO on the internet younger than 2 years old so I suspect it hasn't caught on.

  • Not able to retrieve data from table faster

    Hi All,
    I have a table tab1, and I am creating one more table tab2 by selecting col1,col2 of tab1.
    creation query would be like this.
    create table tab2 as
    select as select /*+ parallel(qla,20) */ col1,col2 from tab1;
    Table tab2 is created, but the problem is when we query tab2 it is taking too long time to display the results, and the table tab2 is having arount 400 million data.
    Request every one to suggest how to improve the query performance which is
    select * from tab2;

    See the forum FAQ
    SQL and PL/SQL FAQ
    *3. How to improve the performance of my query? / My query is running slow.*
    SQL and PL/SQL FAQ

  • How to create Insert & Update on master-detail form JPA/EJB 3.0

    Is there any demonstration or tips how to Insert record on master-details form for JPA/EJB 3.0 with ADF binding?

    I have master-detail forms (dept-emp). I drag the dept->operations->create method to JSF page. But when I click create button, only dept form is clear and ready for insert. But emp form is not clear. How can I add create method for this?
    Can you give some example how to pass the right object to the persist or merge method so that it can save both the two objects (master-detail tables)
    Thanks
    Edited by: user560557 on Oct 9, 2009 8:58 AM

  • TABLES USED IN PURCHASE ORDER CREATION

    Hi all,
    I want to know the tables used in purchase order creation header line.
    Those which are refereed by structure mepo_topline
    especially...
    mepo_topline-superfield
    MEPO_TOPLINE-ebeln etc.....
    Looking forward to hear from you all.
    regards,
    VKC

    hi,
    you can check in the include : MM06EFTO Form routine
    FORM mepo_get_topline USING ex_topline LIKE mepo_topline
    Its referring   MOVE-CORRESPONDING ekko TO ex_topline.
    so it is EKKO table.
    sometimes it refers to EKBE table also.
    Regds
    Sivaparvathi
    Please reward points if helpful..

  • Problem when using JPA/EJB in webservice

    I wrote a web service that use JPA/EJB to connect to Sybase (the existing tables), and deployed to OC4J, but it got the following error when the web service is invoked:
    <env:Envelope
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:ns0="http://prjtestws_9/types/">
     <env:Body>
      <env:Fault>
       <faultcode>env:Server</faultcode>
       <faultstring>Internal Server Error (Caught exception while handling request: java.lang.NullPointerException)</faultstring>
      </env:Fault>
     </env:Body>
    </env:Envelope>
    I have checked that, the query will return some records, and also it works fine if the program executed as a stand alone application.
    Thanks in advance

    I find that I can only have ONE webservice that using JPA/EJB for an OC4J instance, if more than one then the above error will come out, and I have to restart the OC4J instance to run another webservice that using JPA/EJB.
    Is there any solution for this issue?
    Thanks

  • Transforming Entities to Tables - No changes are saved to the database

    Hi,
    I have inherited a Designer 9i application which has 4 containers. Changes were maid to one container and I'm trying to transform Entities into Tables.
    The transformation runs fine and I get "Changes posted to database" messages.
    The problem is when I go in the RON and try to see if changes were maid to the Tables: none ! Nada !
    Everything that came with the application (dmp file from vendor) is there but nothing of the new stuff...
    I tried Default mode and "Advanced" several times to no avail...
    I'm using Designer 9.0.2.10 on a 9i database... Everything is compiled and functionning properly beside to changes that won't get saved into Tables...
    Any ideas ?
    Thanks !

    The fact that you are using the repository owner may be your problem. NEVER use the repository owner for day to day work. The only tool that should ever connect as the owner is the Repository Administration Utility (RAU). Instead, have the DBA create a user for your day to day work, use RAU to grant that user access to the repository, and in the Repository Object Navigator (RON) grant the user rights on various applications.

Maybe you are looking for

  • I can't burn a CD on my Mac Mini.

    Everything used to work fine.  Now when I try, it seems to make it through one or two songs, and then the "time remaining" climbs and climbs until iTunes finally gives up and spits the disk out. I've tried changing the burn speed, using a different k

  • Value Field in COPA doesn't updated in Pricing Procedure

    Dear SAP Experts, I have a problem about Value Field in COPA. Why the Value Field in COPA that have been assigned to Transfer of Billing Document for Statistical Condition Type doesn't updated in Pricing Procedure (SD) when Billing Posting? Any sugge

  • Can't send email to myself

    I can't send an email to myself, as a reminder thru ical or thru different accounts. When I choose "get mail", I get the mail received sound but the email doesn't not show up anywhere. Not even in the trash or junk box. It just disappears. Do I have

  • New DMS document attachment to order header - can it also be done to a task list?

    With business function LOG_EAM_CI_6, you can now attach DMS documents to the order header or operation level in the 'Additional Data' tab. Since a lot of clients use documents to list complex preventive maintenance instructions, is it also possible t

  • HP dv9740us not going past blue screen with page_fault_in_nonpaged_area error

    I have had very few problems with my laptop until recently.  I have had a couple of minor crashes that I could fix by doing a hard restart.  Last night, I was playing an online game and suddenly my game started to bog down then it froze up completely