facebook

Ignoring an ID fieldset.

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #298457 Reply

    sullivan.t
    Member

    The reverse engineering looked at the primary key in my DB and generated the applicable ID objects. There are three fields in this object – MRN, AccountNumber, and Facility.

    I’d like to findByAccountNumber where the facility is X; ignoring the MRN field.

    Finding by ID, will that work if I just don’t populate the MRN? Can I changeup the XML to “redo” the ID object (and according objects) to only have AcctNum and Facility?

    There is no “findByAcctNumb” method in the DAO. I guess I could just _make_ one…

    What’s the best way to go about this?

    #298458 Reply

    sullivan.t
    Member

    And, for the record … I _really_ love MyEclipse!

    #298513 Reply

    Sullivan,

    Thanks for your support. Can you copy and paste your installation details. You can get it from MyEclipse > Installation Summary > Installation Details. I will get a dev team member to help you with this issue.

    Have you tried cross-posting this on hibernate forums?

    #298517 Reply

    sullivan.t
    Member

    I can do that, but I think I figured out a way to “get around” it…

    For the fields I need, I need only to look at two of the three primary keys… so, from the generated key in the mapping xml, I just removed the field I didn’t need, and then changed the applicable code upstream. It works fine. Is there a different/better way? I’ll post my install details to see anyway, but will have to do that a bit later.

    Thanks!

    ————-

    *** Date:
    Monday, May 18, 2009 8:43:32 AM EDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.1.1
    Build id: 7.1.1-20090310

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.1.1
    Build id: 7.1.1-20090310

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.1\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll

    #298528 Reply

    sullivan,
    Thank you for the installation details and it is good to know that you could find a work around.
    If you are looking for a better way of doing it, i would suggest you to cross post to hibernate forums.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Ignoring an ID fieldset.

You must be logged in to post in the forum log in