I'd like to do this mapping: one class=one tables !!!

Hello,
I am a new user of kodo, in my application all classes extend my
YOBaseObject class, so when I generate the schema of my msql database
using the mappingTool (as: mappingTool -a refresh package.jdo) only the
table yobaseobject is created.
My gaol is the get one table for a class.
thank you,
smail

Smail-
By default, Kodo uses the "flat" class mapping, which stores all of the
subclasses in the table of the top-level persistent class.
You may want to use "vertical" (one table per class in the hierarchy) or
"horizontal" (one table per concrete subclass, no table for abstract
superclass). Take a look at the documentation for the different class
mappings at:
http://docs.solarmetric.com/manual.html#ref_guide_mapping_classmapping
Let us know if you have any questions about any of this.
In article <cc0gr4$iv7$[email protected]>, ouhmmou wrote:
Hello,
I am a new user of kodo, in my application all classes extend my
YOBaseObject class, so when I generate the schema of my msql database
using the mappingTool (as: mappingTool -a refresh package.jdo) only the
table yobaseobject is created.
My gaol is the get one table for a class.
thank you,
smail
Marc Prud'hommeaux
SolarMetric Inc.

Similar Messages

  • Embedded mapping (one table - two classes)

    I any using ebedded fileds (one table but two related classes like company-adress example in Developer Guide):
    <class name="StyleCoreImpl" detachable="true">
                   <field name="createdBy">
                        <embedded null-indicator-column="CREATEDBY_USER">
    <field name="date" column="CREATEDBY_DATE"/>
                        </embedded>
                   </field>
         </class>
    <class name="MadeByStatusImpl" detachable="true">
         <field name="date"/>
         <field name="user"/>
    </class>
    but get at runtime an error "No table was given for persistent type":
    <4|true|4.0.0> kodo.util.MetaDataException: No table was given for persistent type "com.ottogroup.buying.b2b.assortmentprep.domain.object.style.impl.MadeByStatusImpl".
         at kodo.jdbc.meta.MappingInfo.createTable(MappingInfo.java:479)
         at kodo.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:215)
         at kodo.jdbc.meta.strats.FullClassStrategy.map(FullClassStrategy.java:52)
         at kodo.jdbc.meta.ClassMapping.setStrategy(ClassMapping.java:349)
    Question:
    How should we map an embedded class which does not have any table in DB ?
    thanks
    Andre Teshler

    Hi Abe, we have following problem with proposed solution:
    Two embedded instances of the same type pointing to the sametarget
    · Problem
    We have an entity that holds date and user of creation and date and user of last change. The
    information is encapsulated in a state object which is mapped as an embedded object. The table
    holds both dates and the ids of the user. The user information is held in a separate user table. If
    we load the entity, the entity table is only joined once against the user table, even if the user ids for
    create and lastchange are different. In consequence, the user objects of the created and
    lastchange state are always the same.
    Question:
    Why is the fact that t0.createdby_user may differ from t0.lasteditedby_user ignored
    and t0 not joined twice against dbldapusermapping?
    Entities:
    public class MadeByStatusImpl {
    private UserImpl user = null;
    private Date date;
    /* getter and setter */
    public final class UserImpl {
    private long id;
    private String givenName = null;
    private String surname = null;
    /* getter and setter */
    public class StyleApprovalCheckImpl {
    private long id;
    private MadeByStatusImpl created = null;
    private MadeByStatusImpl lastChanged = null;
    private String comment = null;
    /* getter and setter */
    Mapping:
    <class name="MadeByStatusImpl" embedded-only="true">
    <field name="date"/>
    <field name="user"/>
    </class>
    <class name="UserImpl" table="DBLDAPUSERMAPPING" identitytype="
    application" detachable="true">
    <field name="id" primary-key="true" column="LDAPUSERMAPPINGID"/>
    <field name="givenName" column="GIVENNAME"/>
    <field name="surname" column="SURNAME"/>
    </class>
    <class name="StyleApprovalCheckImpl" table="DBSMAPPROVALCHECKENTRY"
    identity-type="application" detachable="true">
    <inheritance>
    <discriminator strategy="final"/>
    </inheritance>
    <field name="id" primary-key="true" sequence="Seq" column="ID"/>
    <field name="comment" column="APPROVALCOMMENT"/>
    <field name="created" default-fetch-group="true">
    <embedded>
    <field name="date" column="CREATEDBY_DATE"/>
    <field name="user" default-fetch-group="true"
    column="CREATEDBY_USER">
    <foreign-key/>
    </field>
    </embedded>
    </field>
    <field name="lastChanged" default-fetch-group="true">
    <embedded>
    <field name="date" column="LASTEDITEDBY_DATE"/>
    <field name="user" default-fetch-group="true"
    column="LASTEDITEDBY_USER">
    <foreign-key/>
    </field>
    </embedded>
    </field>
    </class>
    SQL:
    SELECT t0.smapprovalcheckentryid, t0.approvalcomment,
    t0.createdby_date, t1.ldapusermappingid, t1.givenname,
    t1.surname, t1.ldapuid, t0.lasteditedby_date
    FROM dbsmapprovalcheckentry t0,
    dbldapusermapping t1
    WHERE (t0.smstylesupplierid = 1)
    AND t0.createdby_user = t1.ldapusermappingid(+)
    thanks
    Andre Teshler

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • I have two separate itune accounts under two different email accounts and would like to combine them under one account.  Is this possible and if so, how do I do it?

    I have two separate itune accounts under two different email accounts and would like to combine them under one account.  Is this possible and if so, how do I do it?

    If you go to Settings > iTunes & AppStore , you can sign out from your account, and sign in with the one you've used to purchase apps.This will not remove any apps you already have on it.
    Then you can go to AppStore and download apps you've purchased (either via "Purchased" button in "Updates", or simply search for them and download them.
    That way you can have multiple accounts' apps on your iPad. When updating, you will be prompted for the credentials for account you've purchased given App with.

  • I have two apple accounts and one of which has my music on. I would like to move this music to the other account. Is there a simple way of doing this?

    I have two apple accounts and one of which has my music on. I would like to move this music to the other account. Is there a simple way of doing this?

    There is currently no way to merge accounts.  The best option is to pick one, and use it consistantly.
    HTH.

  • I created two iTunes libraries on my mac mini and would like to merge them into one library. What is the easiest way to do this?

    I created two iTunes libraries on my mac mini back in the day. I would like to consolidate them into one iTunes library. What is the easiest method to do this? I do use i-Match to access all my music from  iCloud, if that makes any difference.  Thanks. Mark

    Thanks for the reply. When I created the 2 libraries years ago I would hold down the options key and had 2 library names to choose from. Now it just shows a lot of files when I do that, With over 7,000 songs I think I will just look for the few songs from the original library I used to use that still interest me, if they don't show up in my default current library. Thought there would be any easy was to integrate all my music files into one library. I am definitely not going to spend days manually doing this, but thanks again.

  • I have an apple account but would like to create a new one for my mum on my computer how do I do this ?

    I Have my own Apple ID on my computer and would like to create a new one for my mum on my computer so I can transfer all her contacts etc. How do I do this ?

    You can create a new iTunes account on your computer's iTunes or you can do it via http://appleid.apple.com : iTunes: How to set up an Apple ID within iTunes
    If you don't want to give credit card details before the account can be used in the iTunes store then follow the instructions on this page : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • My account was deleted for security issues. I made a new account, but I can't syncronise my apps with this new account. I bought a new Iphone and would like to transfer the apps ans music on this new one. Can somebody help me?

    My account was deleted for security issues. I made a new account, but I can't syncronise my apps with this new account. I bought a new Iphone and would like to transfer the apps ans music on this new one. Can somebody help me?

    Why would you make a new account?  This will likely cause many problems.  Just get you old account enabled.
    Apple ID: "This Apple ID has been disabled for security reasons" alert appears
    Frequently Asked Questions About Apple ID
    Everything you purchased with the old account will always be tied to that account.  You will have to authorize the computer for that account and you will have to update the apps from that account.

  • I recently got IOS 8 and I like it but there is one problem on my camera roll it says i have 600 photos but i went into setting general and about and it says i have 2,743 photos my photos keep on duplicating how do i get this to stop.

    i recently got IOS 8 and I like it but there is one problem on my camera roll it says i have 600 photos but i went into setting general and about and it says i have 2,743 photos my photos keep on duplicating how do i get this to stop. i have a iPhone 5c

    Hi Bpaitin,
    Go to Settings>General>Usage, and under iCloud, click on Manage Storage>click on your device, then under Backup Options, turn Photo Library off and then back on. See if that clears it up.
    If it does not, reset your device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the Slide to Unlock screen redisplays, see if the issue is resolved.
    Cheers,
    GB

  • I have upgraded my computer to program the MAC OS X but would like to remove this update and revert to the old one. Is this possible and how do I proceed?

    I have upgraded my computer to program the MAC OS X but would like to remove this update and revert to the old one. Is this possible and how do I proceed?

    Not easily, unless you backed up your data.
    Did you?  If not, let that be a lesson to never install anything without a backup:
    https://discussions.apple.com/docs/DOC-1992
    https://discussions.apple.com/docs/DOC-1948

  • After ios7 update my iphone is like android os dead slow processing , too fast battery drain,calling process is too low where is apple brand going my friends 11 members using iphone all are got this problem one thing fans like me y they spoil his name ??

    after ios7 update my iphone 4 is like android os dead slow processing , too fast battery drain,calling process is too low where is apple brand going my friends 11 members using iphone all are got this problem one thing apple have unique and unique fans like me why they spoil their name like this update iam too disappointed iam not say for oppose apple iam say for feedback to grow apple in world because i love apple more please solve it
                       by real customers
    iPhone 4, iOS 7, iam apple suporter

    please help me after ios7 update my phone is tooo slowww i want my old iphone                         

  • Hi, I use two email addresses within one account with gmx.  I created one account with the first email address now. How do I add the second one to this account? Now it looks like this. One account was opened with address A. I receive in this account email

    Hi, I use two email addresses within one account with gmx.
    I created one account with the first email address now. How do I add the second one to this account?
    Now it looks like this.
    One account was opened with address A.
    I receive in this account emails for address A and B.
    But I can only write and answer with address A.

    Hi Rudegar,
    Sorry for my late reply.
    It s not the amount of accounts I'm struggling with.
    When I create now for both email addresses one account, then I receive the same emails two times.
    That is not what I want.
    Because on gmx the two email addresses have the same inbox and outbox.
    E.g. I can login to my gmx account either with email A or B. It doesn't matter.
    Now I want to have the same on my ipad.
    One account with both email addresses.

  • Just bought a new iPod Nano.  Still have a working older version of same.  I'd like to synch the new one to my entire library and the old one with less memory to a subset of that library.  How can I accomplish this?

    Not sure if my question should be here or above.  So I'll repeat it.
    I have a new Nano and an old one.  Would like to synch new one to all songs and audible books in my iTunes Library.  Would like to synch the old one for just audible books.
    How can I do this?

    Hi mshields1162,
    Great question, and welcome to Apple Support Communities.
    First, you may want to choose to have the sidebar displayed for familiarity:
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    Afterwards, your device should be displayed if connected:
    We'll want to click on it, and choose the Music tab at the top. Let's make sure "Sync Music" is checked:
    Afterwards, you'll have the option to sync either the entire music library (for your first iPod), or "Selected playlists, artists, albums, and genres" (for the secondary device). Upon selecting this option, four larger option boxes will appear allowing you to pick and choose what content will be synced. For audiobooks, you may need to do the above in the "Books" section. For a visual instruction on how to do this, see the following:
    iTunes 10: Sync to your iPod
    http://support.apple.com/kb/VI72
    Thanks,
    Matt M.

  • UDF  for this mapping rule

    Hi Friends,
         I have one difficult issue which have one mapping rule to write user defined function. I am sending mapping rule Please give me java coding to create udf for this mapping rule which is following below:
    CRFT.COSTR = M_ORD_01 and
    CRFT.CRID = CRHE.CRID and
    CRFV.FTNO = CRFT.FTNO and
    CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_DATE
    And
    CRFT.COSTR = M_ORD_01 and
    CRFT.CRID = CRHE.CRID and
    CRFV.FTNO = CRFT.FTNO and
    CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_TIME
    From ATWRT of ZPPI_ORDER_SCHED_EN DATE+ ATWRT of ZPPIORDER_SCHED_EN_TIME
    In format yyyy-MM-ddTHH:mm:ss
    using this mapping rule, ATWART field can map with target field "End Time" i think.
    Actually source field is CALCULATE but this field is not in Source structure
    target field is "End Time"  this field is in Target Structure.
    I will wait for ur response
    Thanks adn regards
    Sai

    Hi Jagadish,
    This RFC is CONTROL_RECIPE_DOWNLOAD
    in this RFC, i want to map ATWRT field to Target field "End Time" with mapping rule which i had already given.
    In Graphical mapping, i am doing . but i can not get it because mapping condition is difficult. if you have any idea in graphical mapping give me early
    before that i have to give explantion about this is  date value and time value passed through this ATWRT field as different records.
    i am doing as a condition ie  first i have taken date condition. from that condition, first two fields  CRFT.COSTER and M_ORD_01 has given to "equals" funtion     like that have done remaining fileds then the output of those "equals" functions given to "and" functions finally i get one output of "and" function.  while sending DATE values from RFC this output  of "and " function.
    Like this, for Time condtion i have done mapping same way and giving a TIME values from RFC as Second record then output of this "and" function while sending second record with time value.
    here mainly i am getting problem is .....
    here i am taking source field ATWRT( in this field i am sending date format adn time format as different records) with the outputs of the mapping conditons as input vaules of another function. i dont have any idea for another function why because is first date record should be wait until the time record comes in this function.after then both vaules should concat .
    now here whenever you send date value through this field ATWRT as first record and after satishfy the date condition form mapping rule,  The date value of ATWRT should go to input of concat function. next i will send time value like date value through ATWRT as second record . It should go to another input of concat function. Then here both date value and time value concat with T  and should be come output in the format  yyyy-MM-ddTHH:mm:ss and this will go to Target field "End Time".
    I will be wait for ur possitive reply
    thanks for giving response
    Thanks adn regards
    sai

Maybe you are looking for