On activating persistent class: There is no mapping for one or more fields

Hi all,
I'm using an ECC 6.0 system.
I've just created a persistent class and defined the persistence. When I try to activate the class activating fails and I get the message "There is no mapping for one or more fields."
I did not, in fact, use all the fields of the database table I defined the persistence on. When I do use all the fields activating the class works without a problem.
However, as far as I know it should be possible to select only some of the fields when defining the persistence (the only fields I have to select are all the key fields of the table and I've done this).
Has anybody encountered the same problem or has anybody any idea on this?
Cheers,
Kathy

Hi Kathy,
this is exactly what I meant.
If you'd like, then you can also take a look at the documentation: http://help.sap.com/saphelp_nw04/helpdata/en/b0/9d0a3ad259cd58e10000000a11402f/frameset.htm
There under Mapping, you can find:
"You must map all columns of a database table to attributes. If you only want to manage some of the columns using Object Services, you must create a database view."
Making attributes private doesn't change the fact, that you still map all fields. If you have a lot of fields, which you don't want to map, then I will again suggest, that you define a DB-view. This will boost the performance of your implementation.
In case you need "quality 1st" performance, then I would suggest to use an ABAP implementation with internal tables, instead of the Persistent Service.
HTH,
Hristo

Similar Messages

  • Any body know when there will be maps for Israel?

    Any body know when there will be maps for Israel?

    Well, I was positively surprised, in the way that I actually got quite an informative answer from Navteq:
    Thank you for contacting NAVTEQ Maps.
    Unfortunately at this stage we do not have a precise release date available for the Israel map.
    We do apologize for the inconvenience.
    Should you require additional information, please send us your feedback by replying to this email.
    With kind regards,
    NAVTEQ Maps Customer Service
    Nokia Location & Commerce
    PO Box 501
    7300 AM APELDOORN
    THE NETHERLANDS
    But still no info whatsoever on when Israel would be available for Nokia maps.

  • Help with multi-table mapping for one-to-many object inheritance

    Hi,
    I have posted on here before regarding this (Toplink mapping for one-to-many object inheritance but I am still having problems mapping my object model to my schema.
    Object model
    The Person and Organisation objects contain base information and have the primary keys person_id and organisation_id. It is important that there is no duplication of person and organisation records, no matter how many times they are saved in different roles.
    There are two types of licenceholder in the problem domain, and the ILicenceHolder interface defines information and methods that are common to both. The PersonalLicenceHolder object represents one of these types of licenceholder, and is always a person, so this class extends Person and implements ILicenceHolder.
    The additional information and methods that are required by the second type of licenceholder are defined in the interface IPremisesLicenceHolder, which extends ILicenceHolder. Premises licence holders can either be people or organisations, so I have two objects to represent these - PremisesLicenceHolderPerson which implements IPremisesLicenceHolder and extends Person, and PremisesLicenceHolderOrganisation which implements IPremisesLicenceHolder and extends Organisation.
    The model is further complicated by the fact that any single Person may be both a PersonalLicenceHolder and a PremisesLicenceHolderPerson, and may be so several times over. In this case, the same basic Person information needs to be linked to several different sets of licenceholder information. In the same way, any single Organisation may be a PremisesLicenceHolderOrganisation several times over.
    Sorry this is complicated!
    Schema
    I have Person and Organisation tables containing the basic information with the primary keys person_id and organisation_id.
    I have tried to follow Donald Smith's advice and have created a Role table to record the specialised information for the different types of licence holder. I want the foreign keys in this table to be licenceholder_id and licence_id. Licenceholder_id will reference either organisation_id or person_id, and licence_id will reference the primary key of the Licence table to link the licenceholder to the licence. Because I am struggling with the mapping, I have changed licenceholder_id to person_id in an attempt to get it working with the Person object before I try the Organisation.
    Then, when a new licenceholder is added, if the person/organisation is already in the database, a new record is created in the Role table linking the existing person/organisation to the existing licence rather than duplicating the person/organisation information.
    Mapping
    I am trying to use the toplink mapping workbench to map my PremisesLicenceHolderPerson object to my schema. I have mapped all inherited attributes to superclass (Person). The primary table that the attributes are mapped to is Person, and I have used the multi-table info tab to add Roles as an additional table and map the remaining attributes to that.
    I have created the references PERSON_ROLES which maps person.person_id to roles.person_id, ROLES_PERSON which maps roles.person_id to person.person_id and ROLES_LICENCE which maps roles.licence_id to licence.licence_id.
    I think I have put in all the relationships, but I cannot get rid of the error message "The following primary key fields are unmapped: PERSON_ID".
    Please can somebody tell me how to map this properly?
    Thank you.

    I'm not positive about your mappings, but it looks like the Person object should really have a 1:M or M:M mapping to the Licenceholder table. This then means that your object model should be similar, in that Person object could have many Licenses, instead of being LicenceHolders. From the looks of it, you have it set up from the LicenceHolder perspective. What could be done instead if a LicenceHolder could have a 1:1 reference to a person data object, rather than actually be a Person. This would allow the person data to be easily shared among licences.
    LicenceHolder1 has an entry in the LicenceHolder table and Person table. LicenceHolder2 also has entries in these tables, but uses the same entry in the Person table- essentially it is the same person/person_ID. If both are new objects, TopLink would try to insert the same person object into the Person table twice. I'm not sure how you have gotten around or are planning to get around this problem.
    Since you are using inheritance, it means that LicenceHolder needs a writable mapping to the person.person_id field- most commonly done through a direct to field mapping. From the description, it looks like roles.person_id is a foreign key in the multiple table mapping, meaning it would be set based on the value in the person.person_id field, but the person.person_id isn't actually mapped in the object. Check to make sure that the ID attribute LicenceHolder is inheriting from person hasn't been remapped in the LicenceHolder descriptor to a different field.
    Best Regards,
    Chris

  • Is there a way to remove one or more words in the dictionary list of auto-completion?

    Is there a way to remove one or more words from the dictionary list of auto-completion?

    Hi Gordon,
    Auto-completion does not involve the dictionary. The process is dynamic, and remembers the text string you have entered into each cell. The auto completion list is constructed using data you have entered into cells above the one you are currently working with. Suggestions presented contain the same character string as a previous entry in that column. Editing the list presented is not possible.
    Auto-Correction does involve the spelling dictionary. It monitors the text as you type. If it finds an 'unregognized word,"' AND has more than one suggestion as to the 'correct' word, it opens a dialogue, giving you a chance to choose one of the suggestions, enter your own corection, or to accept the current spelling. If there is only one suggestion offered, Auto-correction automatically replaces the unrecognized word wth that suggestion.
    Regards,
    Barry

  • Toplink mapping for one-to-many object inheritance

    Hi
    I currently have a Person object, extended by two specialist classes, PremisesLicenceHolder and PersonalLicenceHolder. I have mapped this in Toplink and it works fine saving a person into the specialist tables using the primary key person_id.
    However, a single Person may be extended any number of times by either one or both of the two specialist types. So, a Person may be a PremisesLicenceHolder many times over for different premises and licences, and also a PersonalLicenceHolder several times over.
    Is it possible to map this object model in Toplink avoiding duplicate person_id primary keys in the specialist tables?
    Thanks

    Hi,
    I am happy that my object model fits the problem domain. The Person and Organisation objects contain base information and have the primary keys person_id and organisation_id. It is important that there is no duplication of person and organisation records, no matter how many times they are saved in different roles.
    There are two types of licenceholder in the problem domain, and the ILicenceHolder interface defines information and methods that are common to both. The PersonalLicenceHolder object represents one of these types of licenceholder, and is always a person, so this class extends Person and implements ILicenceHolder.
    The additional information and methods that are required by the second type of licenceholder are defined in the interface IPremisesLicenceHolder, which extends ILicenceHolder. Premises licence holders can either be people or organisations, so I have two objects to represent these - PremisesLicenceHolderPerson which implements IPremisesLicenceHolder and extends Person, and PremisesLicenceHolderOrganisation which implements IPremisesLicenceHolder and extends Organisation.
    The model is further complicated by the fact that any single Person may be both a PersonalLicenceHolder and a PremisesLicenceHolderPerson, and may be so several times over. In this case, the same basic Person information needs to be linked to several different sets of licenceholder information. In the same way, any single Organisation may be a PremisesLicenceHolderOrganisation several times over.
    Sorry this is complicated!
    My initial idea for the schemas is to have Person and Organisation tables containing the basic information with the primary keys person_id and organisation_id. The Person table would have a one-to-many relationship with both the PersonalLicenceHolder table (pk: personalLicenceHolder_id, fk: person_id), and the PremisesLicenceHolderPerson table (pk: premisesLicenceHolderPerson_id, fk: person_id). There would also be a one-to-many relationship between the Organisation table and the PremisesLicenceHolderOrganisation table (pk: premisesLicenceHolderOrganisation_id, fk: organisation_id).
    I am flexible as to the design of my schema though, as I am happy to adopt any that will facilitate the Toplink Mapping.
    Thanks for your help with this.

  • When there will be Maps for Israel roads??

    I have read a few months ago that Israel already has been mapped by Navteq so why the maps aren't available?
    When we here in Israel could finally use Nokia Maps??

    Well, I was positively surprised, in the way that I actually got quite an informative answer from Navteq:
    Thank you for contacting NAVTEQ Maps.
    Unfortunately at this stage we do not have a precise release date available for the Israel map.
    We do apologize for the inconvenience.
    Should you require additional information, please send us your feedback by replying to this email.
    With kind regards,
    NAVTEQ Maps Customer Service
    Nokia Location & Commerce
    PO Box 501
    7300 AM APELDOORN
    THE NETHERLANDS
    But still no info whatsoever on when Israel would be available for Nokia maps.

  • Error message: There is a problem accessing one or more files in your iPhoto library. Do you want iPhoto to repair permissions for this library for you?

    I have been using iPhoto for years.  Today when I tried to upload pictures from camera, I received the above error message.  I select "Repair", enter my password, and then a message "iPhoto was unable to repair permissions for the library" appears. I select "Quit" and it closes iPhoto.  Quit is the only option.  What has happened?  I have tried to access the photos via other avenues such as uploading to gmail, and the photos load fine.  I have about 28,000 photos.
    I do not know what version of iPhoto I am using as I am unable to access the software.  I have a iMac OS X (10.7.5).  What should I do?

    Select the iPhoto application in the Applications folder and type Command+i to bring up its Info Window. There will tell the version number. If it's iPhoto 9 or later apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Outlook 2007: There was a problem reading one or more of your reminders. Some of your reminders may not be displayed.

    I have been banging my head on this one for a while.
    I have run the /cleanfreebusy, /resetfolders, /cleanreminders on Outlook.exe
    I moved all calendar items from all folders to a PST, then closed the PST.
    I uninstall and reinstalled Office
    I have looked for KB2412171 and one other KB that didn't apply (about Dynamics)
    My last thought was to recreate the Windows profile, but that didn't work. It still came back.
    After removing the calendar events, I just tried MFCMapi, but the Reminders table doesn't show ANY reminders! This would lead me to believe that I really did remove ALL reminders to the PST, and they aren't showing. Why then does it still say that
    it can't display the reminders?
    After using MFCMapi, I also connected to the server using Non-cached mode, saw that no reminders were present, so I got the bright idea to use non-cached mode for the client. This may or may not work over the long run, because she has 11000 items in her
    inbox.
    Any ideas?

    Hi,
    Have you finished pruning down the calendar items? If that fix the problem?
    In addition, please have a look at this thread and check if it applies:
    http://answers.microsoft.com/en-us/office/forum/office_2007-outlook/outlook-2007-there-was-a-problem-reading-your/01969b36-5c58-4677-9840-15bae96e292f
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Problems in actvating a persistent class

    Hello All
    I have created a persistent class. When I am trying to activate it I am getting a
    message in status bar that
    'There is no mapping defined for one or more fields'.
    I have defiend 4 attributes in the class - then clicked on the PERSISTENCE tab in
    in the main toolbar, gave the table name and mapped the table fields to the class attributes. Still I am getting the message.
    Could anyone please suggest why this is happening?
    Also could anyone please explain to me why do we always need to define the instantiation as "protected" when creating a persistent class.
    Thanks in advance.
    Regards
    Indrajit

    Hello All,
    The problem is solved.
    I was of the understanding that I can take only few of the table fields and map it to class attributes. So I took only 4 fields of the table SPFLI and mapped it to the corresponding 4 attributes of the persistent class. So I was getting the message that
    'There is no mapping defined for one or more fields'.
    So I tried by defining class attributes corresponding to all fields of the table and mapped accordingly all table fields. This time I could activate the class.
    This I believe is a constarint because one may not be really interested in all fields of the database table.
    Regards
    Indrajit

  • Updating linked fields in a persistent class

    Hi all,
    If a field of a persistent class is updated, what is the best way to update a related field?
    Scenario:
    A persistent class with public GET/SET access to a table field STUFF, and public GET access to a field CATEGORY.
    Whenever SET_STUFF is called from the outside, the class should also re-evaluate and update CATEGORY.
    The easiest is to modify the SET_STUFF method to determine the new category and update it if necessary. However GET/SET methods are always overwritten whenever the class is regenerated, which happens all too easily. Can this be done a bit more elegantly?
    Most modifications can be done by redefinitions of the agent class and do not get overwritten each time the class it regenerated. e.g. I have done something similar by redefining the DB access methods to update various fields, but for my current requirement the update needs to be immediate, not during save.
    Any input appreciated,
    MIke
    Edited by: Mike Pokraka on Sep 15, 2009 4:12 PM

    Hi Naimesh,
    >
    Naimesh Patel wrote:
    > Updating the field CATEGORY immediatly would lead to some problems while working with Persistent class because of the COMMIT WORK. As soon as COMMIT WORK after the CATEGORY's "save" hits, all pending save request would execute and may update some fields which you don't want to update at that point of time.
    No COMMITs should be performed, that's part of what I'm trying to accomplish. STUFF may change several times during the lifetime of the process and CATEGORY must change with it. When the application finally does a COMMIT WORK then both are written to the DB. (In fact my real scenario involves both transient and persistent instances and multiple callers).
    My objectives are to have a readonly attribute in the persistent class that changes in response to other fields changing. It should behave as though the app is calling a SET_STUFF and a SET_CATEGORY, but the persistent class must retain control of the CATEGORY field as several applications can modify STUFF.
    My current workaround is an UPDATE_CATEGORY method that must be implemented by each caller, so it works. Layering another class above it an option but is a bit of overkill which also makes it a workaround.
    I have found that EXT_HANDLER_WRITE_ACCESS seems to provide something, but the comments in there seem to indicate I shouldn't modify the object info. Unfortunately I have run out of time to experiment this week so the workaround will have to stay for now, but I'd still be interested in a more elegant solution.
    Thanks for the input,
    MIke

  • Why aren't there any English GPS maps for Japan?

    I mean, why? There are GPS maps for almost every developed country, but for Japan there are none that i know of (neither Navteq nor Teleatlas, which are the two major cartography companies out there).
    I've seen several Japanese GPS solutions, but they unfortunately don't have an English option. I've never seen a major company like TomTom or Garmin (among many others), offering a solution for that market.
    So, what company does the cartography out there (Navteq or Teleatlas like), and why doesn't TomTom or Garmin use their data in order to develop an English GPS solution? There has to be some kind of logical explanation.
    Kind Regards.

    psychomania wrote:
    Can you provide an official link for Garmin XT for the N8 and for Japan Road Navi 2.1? 
    As no doubt you were aware when posting Garmin Mobile Xt is now no longer available:http://www8.garmin.com/support/collection.jsp?product=010-11034-00
    Since this is the only way of getting navigation for Japan, Pakistan and Cyprus which Nokia have choosen to avoid providing for with Nokia Maps, presumably you would rather OP was left in ignorance of technical feasibility of it's use upon Symbian devices.
    Whereas under your profile it says "Please do not contact me asking for assistance in a personal message (that includes bringing posts to my attention), you will not receive help from me in that way" I have always been happy to provide further guidance should user so request under such situations.
    Happy to have helped forum with a Support Ratio = 42.5

  • Mapping for fields in Standard cube

    Hi,
    There arent any mappings for the date related fields 0RPM_MONTH,0RPM_YEAR,..etc. in the business content cube 0RPM_c02 capacity management. I could not find any relevant mappings in sap help also.Please provide any pointers as to how to update these fields as these are the main field in the standard BC reports.
    Thanks & Regards,
    Rathy

    Hi,
    Because there no data in these fields 2 of the standard reports return with no applicable data.But all other fields in the report have appropriate data.What i would like to understand is since it is being used as main field in the report and not been provided a mapping in BC based on what shall go and update it so that i can get data in the report.
    Thanks
    Rathy

  • Multiple SIM instances on same db - disable Active Sync for one?

    Hello. I am trying to set up two instances of Identity Manager that are running on the same machine and are connected to the same database.
    I want one to be doing the Active Sync provisioning and the other to not.
    Is there a way to disable Active Sync resources from starting up on one instance but not the other? I know I can manually start them, but I'd like the Active Sync resources to automatically start up for one of the servers.
    I am using -Dwaveset.hostname and setting it to a different value for each instance.
    Thanks.

    957354 wrote:
    Hi Laxman,
    If its a testing purpose its ok to have a one oracle_home and single listener for multiple DB. One problem when applying oracle patches for one of the instances running in a multiple DB running then you need to bring all the DB running in that host since the oracle_home is sharing between all db instances.
    Thanks
    Sunil Rajesh K.C.Starting with 11g, patchset updates are full installs and done into a new home. This makes it possible to migrate one instance at a time. However, your point would be a consideration for one-off patches like CPUs.
    However, please note ... OP --- PLEASE NOTE even with multiple oracle homes, you still only need a single listener.

  • Submitting site maps for multiple sites to Google

    I sort of glommed on to the end of the thread "meta and google-ing...i give up," but I'll start a fresh post here with this:
    I have three sites in iWeb, all of which have their own registered Go Daddy domain names and are forwarded to .mac without masking. I followed James Tseng's instructions and successfully submitted to Google and verified my "www.mac.com/user/iWeb" url.
    I also successfully uploaded a site map for one of my sites (let's just call it Site 1), which is in my iWeb folder (not the Site 1 folder).
    My question: I assume I can create separate site maps for Sites 2 and 3. Do they also go in the same iWeb folder as the first one? Is that possible if they're all named "sitemap.xml" or do they have to be given different names?
    Also... if I want to submit these three sites to other engines like MSN and Yahoo, can I submit the forwarded domain names, or will these engines not follow the forwarding to my .mac url?
    If that's the case, is it best to submit the single "www.mac.com/user/iWeb url" as I did with Google, or should I submit each site's .mac url separately?
    Thanks in advance for your help!
    Mitch

    <As posted in the the other thread...>
    Hi Mitch....
    I hope you've been finding all this helpful so far! It's always fun to see just how much feedback you can get from Google. Sort of gives you a feeling that "you've arrived". haha.
    Regarding your question about sitemaps and multiple sites.... My strategy is this... I like to give Google sort of the broadest catch that I can. That's why I really suggest to people that they register the most general URL... http://web.mac.com/username/iWeb/ . You see how that really leaves the door open for the possibility of multiple sites, without having to register multiple sites. Google really doesn't care that you call them separate sites...to Google they appear as part of the same site...with the same base verified URL.
    So with that registered URL, there really is only one place where the verification file and sitemap.xml file can go. And that place is in the iDisk/Web/Sites/iWeb/ folder. And there is really only a need for a single verification file and a single sitemap.xml file, no matter how many sites you have. The point here isn't telling Google that you have more sites...it's just about telling Google that you have more LINKS in the site that it already knows about.
    So how do you do this? Just spider your new site or gather the links in your own way and then copy and paste the links (just the links section...not the first two lines or the last line of the code) into the sitemap.xml file that you have already submitted before. Then resubmit it to Google.
    Does this make sense? Let me know what you think.

  • Descriptor exception for "missing mapping for field"

    I am using TopLink 9.0.3, oracle database 9, JVM 1.4.
    I got one DescirptorException that states that the descriptor misses mapping for one database field.
    However I have such field mapped through workbench.
    The is the exception.
    -----------------exception-----------------------
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-45] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
    EXCEPTION DESCRIPTION: Missing mapping for field [DatabaseField(DEVICEDB.DEVICEID)].
    DESCRIPTOR: Descriptor(ContactDB --> [DatabaseTable(DEVICEDB)])
    at oracle.toplink.exceptions.DescriptorException.missingMappingForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractForeignKeyFromReferenceObject(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.executeBatchQuery(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractResultFromBatchQuery(Unknown Source)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromBatchQuery(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.batchedValueFromRow(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(Unknown Source)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(Unknown Source)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(Unknown Source)
    at oracle.toplink.queryframework.ReadAllQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
    at oracle.toplink.threetier.ServerSession.internalExecuteQuery(Unknown Source)
    at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
    at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(Unknown Source)
    at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(Unknown Source)
    at oracle.toplink.indirection.IndirectList.buildDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.getDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.isEmpty(Unknown Source)
    The is my mapping file for DeviceDB and ContactDB. The ContactDB is a subclass of the DeviceDB.
    Clearly from the mapping below, the DeviceDB has a mapping for the database filed DeviceID.
    The ContactDB is a subclass of DeviceDB. Therefore the ContactDB also should have a mapping for
    database field deviceID
    ----------------------- partial mapping file for DeviceDB----------
    public Descriptor buildDeviceDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(DeviceDB.class);
         descriptor.addTableName("DEVICEDB");
         descriptor.addPrimaryKeyFieldName("DEVICEDB.DBID");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setClassIndicatorFieldName("DEVICEDB.CLASS");
         descriptor.getInheritancePolicy().addClassIndicator(ContactDB.class, "c");
         descriptor.getInheritancePolicy().addClassIndicator(ContentDB.class, "f");
         OneToOneMapping deviceMapping = new OneToOneMapping();
         deviceMapping.setAttributeName("device");
         deviceMapping.setReferenceClass(Device.class);
         deviceMapping.setRelationshipPartnerAttributeName("databases");
         deviceMapping.dontUseIndirection();
         deviceMapping.readOnly();
         deviceMapping.addForeignKeyFieldName("DEVICEDB.DEVICEID", "DEVICE.DEVICEID");
         descriptor.addMapping(deviceMapping);
         return descriptor;
    ---------------------------partial mapping for ContactDB --------------
    public Descriptor buildContactDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(com.access.sync.business.contact.ContactDB.class);
         descriptor.addTableName("DEVICEDB");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setParentClass(com.access.sync.framework.systemObj.DeviceDB.class);
    Any help is really appreciated.
    jason

    Your 1-1 mapping must not be read-only.
    deviceMapping.readOnly();Read-only means the mapping will not write the field, and should only be used when another mapping does write the field.

Maybe you are looking for

  • Workflow error in ERMS (CRM 7.0)

    Hello Experts. I am facing a workflow issue in ERMS.We are using ERMS and using standard workflow to route email to org.unit. As lotus notes is not integrated,  In order to test the ERMS Policy rule process,I have sent a mail from SBWP (SAP Business

  • Password Self Service - User receive new Password Email - But link empty

    With Password Self Service we sometimes have users that get the Email with the link. But when they open the link it is just an empty page. (as if it has been opened before or the password show time has passed) Have anyone had this issue? Thank you

  • Why do I have to download Adobe Flash Player to watch certain videos?

    I have a new Mac Pro and when I want to watch some videos on YouTube or videos for my online class, I get the "missing plug-in" message and am directed to download Adobe Flash Player. This is frustrating because I DESPISE just about anything Adobe! I

  • Installing FlexBuilder 2 fails!

    Hi All, FB2 is crashing during installation, Ctrl Alt Del doesn't do it, I have to hard boot, sometimes even getting the Windows Blue screen error during the installations, this happened to me before with Beta 3 but I won the battle by deleting all r

  • Why are there 3 library folders on my MB Pro?

    Why are there 3 library folders on my MB Pro? (1) in the HD folder; (2) in the system folder; (3) in the user folder?