Horizontal mapping + embedded one-to-one problem

Hi,
this message corresponds to the article "Embedded One-to-One mapping
problem". But this article is more exactly then the first without less
unnessary information.
I got an abstract super-class Person which is mapped horizontal.
Student inherits from Person.
Person contains an attribute called location(instance of Class Location)
which should be mapped "embedded one-to-one".
Since Person is mapped horizontal no table will be used for Person.
I get following exception when running mappingtool on action "buildSchema"
kodo.jdbc.meta.MappingInfoNotFoundException: No mapping information was
found for "xxx.yyy.zzz.persistence.jdo.business.Location.lat"
I think Kodo tries to map the field "location" since the field is declared
as embedded. But it can not embed the field since Person is horizontal
mapped and no table for Person exists where the corresponding field of
Location could be placed in. Also it is not possible to set the "embedded"
attribute in the subclass Student for the field "location" because it must
be specified in the superclass.
Can you help me ?
Thanks a lot,
Felix
Additional information:
=======================
Exception stack trace:
[mappingtool] kodo.jdbc.meta.MappingInfoNotFoundException: No mapping
information was found for "xxx.yyy.zzz.persistence.jdo.business.Location".
[mappingtool] at
kodo.jdbc.meta.RuntimeMappingProvider.getMapping(RuntimeMappingProvider.java:44)
[mappingtool] at
kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository.java:352)
[mappingtool] at
kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:307)
[mappingtool] at
kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:162)
[mappingtool] at
kodo.jdbc.meta.MappingTool.buildSchema(MappingTool.java:646)
[mappingtool] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:951)
[mappingtool] at
kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:175)
[mappingtool] at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
[mappingtool] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[mappingtool] at org.apache.tools.ant.Task.perform(Task.java:364)
[mappingtool] at org.apache.tools.ant.Target.execute(Target.java:301)
[mappingtool] at
org.apache.tools.ant.Target.performTasks(Target.java:328)
[mappingtool] at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[mappingtool] at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[mappingtool] at org.apache.tools.ant.Main.runBuild(Main.java:632)
[mappingtool] at org.apache.tools.ant.Main.startAnt(Main.java:183)
[mappingtool] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[mappingtool] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Here is the JDO-Metadata:
<?xml version="1.0" encoding="UTF-8"?>
<jdo>
<package name="xxx.yyy.zzz.persistence.jdo.business">
<class name="Location"/>
<class name="Person" identity-type="application"
objectid-class="PersonId">
<field name="location" embedded="true"/>
<field name="id" primary-key="true"/>
</class>
<class name="Student" identity-type="application"
persistence-capable-superclass="Person"/>
</package>
</jdo>
Here is the mapping-metadata:
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<package name="xxx.yyy.zzz.persistence.jdo.business">
<class name="Person">
<jdbc-class-map type="horizontal"/>
</class>
<class name="Student">
<jdbc-class-map type="base" table="STUDENT"/>
<jdbc-version-ind type="version-number" column="JDOVERSION"/>
<jdbc-class-ind type="in-class-name" column="JDOCLASS"/>
<field name="Person.birthDate">
<jdbc-field-map type="value" column="BIRTHDATE"/>
</field>
<field name="Person.city">
<jdbc-field-map type="value" column="CITY"/>
</field>
<field name="Person.id">
<jdbc-field-map type="value" column="ID"/>
</field>
<field name="Person.location">
<jdbc-field-map type="embedded"
null-ind-column="NULL_INDICATOR" synthetic="false">
<field name="lat">
<jdbc-field-map type="value" column="LATITUDE"/>
</field>
<field name="lon">
<jdbc-field-map type="value" column="LONGITUDE"/>
</field>
</jdbc-field-map>
</field>
<field name="Person.name">
<jdbc-field-map type="value" column="NAME"/>
</field>
<field name="Person.picture">
<jdbc-field-map type="value" column="PICTURE"/>
</field>
<field name="Person.state">
<jdbc-field-map type="value" column="STATE"/>
</field>
<field name="Person.street">
<jdbc-field-map type="value" column="STREET"/>
</field>
<field name="Person.zipcode">
<jdbc-field-map type="value" column="ZIPCODE"/>
</field>
</class>
<class name="Location">
<jdbc-class-map type="none"/>
<field name="lat">
<jdbc-field-map type="none"/>
</field>
<jdbc-class-map type="none"/>
<field name="lon">
<jdbc-field-map type="none"/>
</field>
</class>
</package>
</mapping>
Here are the class definitions:
Class Location:
public class Location {
     private int lat;
     private int lon;
Class Person:
public abstract class Person {
private int id;
private String name;
private String street;
private String city;
private String state;
private String zipcode;
private Date birthDate;
private String picture;
private Location location;
Class Person:
public class Student extends Person {

You'll probably have much better luck sending this question to
[email protected]; the newsgroup is generally for quick questions
about certain features or problems the community might be able to solve
without input from SolarMetric developers.

Similar Messages

  • Problem with one to one unidirectional relation

    Hi,
    I have one problem with one to one relation ship. While i am trying to persist the objects it is showing that "parent key not found" exception. Is there any problem with my class configuration ?..
    Table description:having two tables with same composite primary key
    ECommSchema table has one composite primay key and the ECommSchemaDet table also has the same composite primary key. In second table (ECommSchemaDet) composite primary key fields are refering(foreign key relation ship) from the first table.
    My entity classes are....
    @Entity(name = "E_COMM_SCHEMA")
    @Table(name = "E_COMM_SCHEMA", uniqueConstraints = {})
    public class ECommSchema extends ParentEntity implements java.io.Serializable{
    // Fields
    private ECommSchemaDet eCommSchemaDet;
    // Constructors
    /** default constructor */
    public ECommSchema(){
    /** minimal constructor */
    public ECommSchema(ECommSchemaId id, String descBriefEng, Date effectiveFrom, Currencies currencies){
    this.id = id;
    this.descBriefEng = descBriefEng;
    this.effectiveFrom = effectiveFrom;
    this.currencies = currencies;
    /** full constructor */
    @OneToOne(cascade = { CascadeType.ALL })
    @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "COMP_CODE", referencedColumnName = "COMP_CODE"),
    @PrimaryKeyJoinColumn(name = "CODE", referencedColumnName = "SCHEMA_CODE") })
    public ECommSchemaDet getECommSchemaDet(){
    return eCommSchemaDet;
    public void setECommSchemaDet(ECommSchemaDet commSchemaDet){
    eCommSchemaDet = commSchemaDet;
    @SuppressWarnings("serial")
    @Entity(name = "E_COMM_SCHEMA_DET")
    @Table(name = "E_COMM_SCHEMA_DET", uniqueConstraints = {})
    public class ECommSchemaDet implements java.io.Serializable{
    private ECommSchema ECommSchema;
    // Constructors
    /** default constructor */
    public ECommSchemaDet(){
    /** minimal constructor */
    public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
    Double brokerRebate, Double ticketCharge){
    this.id = id;
    this.ECommSchema = ECommSchema;
    this.calcBase = calcBase;
    this.multiTier = multiTier;
    this.distMethod = distMethod;
    this.brokerRebate = brokerRebate;
    this.ticketCharge = ticketCharge;
    /** full constructor */
    public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
    Double brokerRebate, Double ticketCharge, String distMethodClient){
    this.id = id;
    this.ECommSchema = ECommSchema;
    this.calcBase = calcBase;
    this.multiTier = multiTier;
    this.distMethod = distMethod;
    this.brokerRebate = brokerRebate;
    this.ticketCharge = ticketCharge;
    this.distMethodClient = distMethodClient;
    // Property accessors
    @OneToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER, mappedBy = "eCommSchemaDet")
    public ECommSchema getECommSchema(){
    return this.ECommSchema;
    public void setECommSchema(ECommSchema ECommSchema){
    this.ECommSchema = ECommSchema;
    Error message is
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
    Error Code: 2291
    Call: INSERT INTO E_COMM_SCHEMA_DET (DIST_METHOD, BROKER_REBATE, CALC_BASE, TICKET_CHARGE, DIST_METHOD_CLIENT, MULTI_TIER, SCHEMA_CODE, COMP_CODE) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
         bind => [T, 23.0, A, 23.0, T, N, 8, 1]
    Query: InsertObjectQuery(com.path.tradeManager.entities.ECommSchemaDet@44fbf5)
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:654)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:703)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:492)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
         at oracle.toplink.essentials.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:150)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
         at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:246)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:202)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1160)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:276)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.flush(EntityManagerImpl.java:350)
         at com.sun.enterprise.util.EntityManagerWrapper.flush(EntityManagerWrapper.java:626)
         at com.path.tradeManager.dao.ECommSchemaDaoBean.save(ECommSchemaDaoBean.java:86)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
         at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
         at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
         at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)
         at $Proxy133.save(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
         at com.path.tradeManager.daoInterface.__ECommSchemaDaoInterface_Remote_DynamicStub.save(com/path/tradeManager/daoInterface/__ECommSchemaDaoInterface_Remote_DynamicStub.java)
         at com.path.tradeManager.daoInterface._ECommSchemaDaoInterface_Wrapper.save(com/path/tradeManager/daoInterface/_ECommSchemaDaoInterface_Wrapper.java)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.path.tradeManager.tunnelGate.RequestHandler.callMethodByReflection(RequestHandler.java:181)
         at com.path.tradeManager.tunnelGate.RequestHandler.handle(RequestHandler.java:150)
         at com.path.tradeManager.tunnelGate.TunnelServlet.doPost(TunnelServlet.java:37)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:542)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2887)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2959)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:647)
         ... 92 more
    Jul 8, 2008 4:17:07 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
    INFO: FATAL[08-07-08 16:17:07][com.path.tradeManager.dao.ECommSchemaDaoBean->save][javax.persistence.PersistenceException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
    Thanks in advance
    Anish

    Hello,
    I'm not sure what the FK_ECOMM_SCH_DET constraint refers to, but I assume it is to the only OneToOne reference defined. Based on the mappings shown, you have told TopLink that ECommSchema has a 1:1 to ECommSchemaDet, so that ECommSchemaDet has to be inserted first. My guess is your constraint is the oposite, requiring that ECommSchema be inserted before ECommSchemaDet. If so, just change the by directional 1:1 so that ECommSchema->ECommSchemaDet is mapped by the ECommSchemaDet->ECommSchema relationship (ie switch things).
    Best Regards,
    Chris

  • ASA5525X - 8.6(1)2 and One-To-One Static Mapping Issue

    Just started working with the post 8.3 CLI.
    Traffic from outside to inside is translated correctly, but inside to outside is using the outside Interface IP instead of the mapped IP, 50.50.50.50.
    I know I'm missing something small here.
    This is the config that was build using ASDM.
    Outside IP: 50.50.50.50
    Inside IP: 10.10.10.10
    object network TEST
    host 50.50.50.50
    description One-To-One NAT 50.50.50.50/10.10.10.10
    object network TEST-priv
    host 10.10.10.10
    description One-To-One NAT 50.50.50.50/10.10.10.10
    object network TEST-priv
    nat (inside,outside) static TEST
    nat (inside,outside) source dynamic IN2OUT interface description PAT Overload Using Interface Public IP
    object network IN2OUT
    subnet 0.0.0.0 0.0.0.0
    description Inside To Outside NAT
    Note: ASDM created object TEST-priv twice. One on top and one below the NAT configs.

    Hello Robert,
    The problem here is the nat order.
    Twice nat are review first so in order to make this work do the following on the CLI.
    no nat (inside,outside) source dynamic IN2OUT interface description PAT Overload Using Interface Public IP
    nat (inside,outside) after-auto source dynamic IN2OUT interface description PAT Overload Using Interface Public IP
    Remember to rate all of the answers, for the community that is more important that a thank
    Regards,
    Julio

  • Wants to avoid mapping for an one-to-one scenario..details in the message

    Hello Experts,
    Need your help on the below problem.
    We are in
    Service Pack: 08
    Release: NW711_08_REL
    Scenario : proxy to file(tab separated)
    mapping: one to one
    structure:
    msgname
      -recordset (0..n)
          -field1 (0..1)
          -field2 (0..1)
          -field3 (0..1)
    FCC setting
    Recordset.fieldSeparator : '0x09'
    Recordset.endSeparator : 'nl'
    In the target file always all the tabs should appear irrespective of the field contain. There are chances that some field might not get populated in the proxy and hence that tag itself might not appear. Right now to achieve this we are using an one-to-one mapping with "mapwithdefault" for all the fields.
    Question: is it possible to achieve this without any mapping? If yes is there something we need to do in the FCC part or somewhere else?
    Quick answer appreciated.
    Thanks
    Sanjay

    you can avoid Mapping only if your sender and receiver both structures are same (along with name). even if there is Field name change you have to have mapping.
    but if your both (Sender and receiver structures) are same and identical then you can avoid mapping and even Operation mapping in PI 7.1
    Thanks,
    Bhupesh

  • How to use the One-to-One mapping in Java Code

    Dear all:
    I have set the direct mapping and named query,
    and have written web service of login.
    I can login successfully.
    Now,I want learning about One-to-One mapping.
    I have setting the One-to-One mapping,
    then what can I do latter?
    I do not found any paper showing how to use it in web service?
    Somebody help me?thx all.

    Following code worked for me:
    import oracle.javatools.resourcebundle.BundleFactory;
    import java.util.ResourceBundle;
    * This method retrieves localized strings from a given XLIF resource bundle.
    * @param bundleName The XLIF bundle from which the localized string is to be retrieved.
    * @param key The key of the localized string.
    * @return The localized string retrieved from the given XLIF bundle.
    public static String getXlifLocalizedString(String bundleName, String key) {
    if (StringUtils.isEmpty(key)) {
    return key;
    if (StringUtils.isEmpty(bundleName)) {
    return "[" + key + "]";
    String localizedString = null;
    ResourceBundle resourceBundle = null;
    try {
    resourceBundle = BundleFactory.getBundle(bundleName);
    localizedString = resourceBundle.getString(key);
    } catch (Exception e) {
    LOG.log(Level.SEVERE, "Problem in loading XLIF resource bundle: " + bundleName, e);
    return "[" + key + "]";
    return localizedString;
    }

  • Copying Mapping from existing multple mapping to One to one mapping

    Hi Experts,
    I am having a scenario in which I am doing one to three mapping.
    I have a input file and I am tarnsforming it to three files HEADER, DETAIl and FOOTER.
    I am using only one mapping for it and it is completed.
    Now I need to do one to one mapping for each HEADER, DETAIL and FOOTer.
    Is there any way that I can copy my mapping from the existing one and do the one to one mapping.
    Regards
    Pradeep

    Hi,
    I guess it should be possible to copy your mapping (3 times) and remove the parts that you don't need.
    The problem (in PI 7.0) is that if you have more than one message at the target side and reduce it to one message your field mappings are lost.
    You can avoid this if you set the occurence of your target message to 0.. unbounded.
    If you don't want to do this you could copy for all fields the last field before the target field (right click on field -> copy) and paste it in your new mapping (this will copy your complete mapping structure).
    Regards
    Patrick
    Edited by: Patrick Koehnen on Jan 12, 2009 11:48 AM

  • Variable one to one mapping question

    I'm trying to create a variable one to one mapping using an interface with two implementing classes. The problem that I have is that I have two different values in the class indicator column that I wish to map to the same class. Mapping workbench doesn't let me do this. The MW documentation discusses using unique primary keys by leaving the class indicator blank. However, i'm using 9.0.4.8 and this doesn't appear to work as I get exceptions at runtime.
    Is there anything along the lines of the inheritance classextraction method for interfaces? Any suggestions for how to go about this?
    Thanks in advance,
    Jonathan

    Hi Jonathan,
    This use case is not supported in the Workbench. You will have to define an After Load Method in the workbench and add the indicator->class mappings in code. I am not positive on how this is handled in the runtime. Which indicator would be used when writing, maybe only supported for read-only mappings, or possibly not supported at all? Someone from the runtime team can respond about this.
    Karen

  • One-to-one-to-one direct to field mapping

    Yes, I didn't mispelled, there IS a one-to-one-to-one relationship in the database I am mapping, don't ask me why!
    To make it simple:
    TABLE A (a,b, att1)
    TABLE B (b,c, att2)
    TABLE C (c, att3)
    My Descriptor class is DescA.java with all attributes (String att1, String att2 and String att3) and is associated directly with table A.
    I have mapped att1 using direct to field.
    I have mapped att2 using direct to field and multitable.
    But there is no direct relationship between A and C tables, which makes multitable configuration impossible (?).
    So, how can I map C.att3 direct to DescA.att3 ??
    []'s
    Henrique

    Henrique,
    If you are using the Toplink Workbench you will have to specify the relationship between Table B and C using an After Load method. The mapping workbench does not support this scenario yet, but it is allowed by TopLink. Use the api ClassDescriptor.addMultipleTableForeignKeyFieldName(String, String) to specify the relationship.
    In the workbench you will see a problem message about the primary keys not matching and no reference being specified. You can safely ignore this warning, or if it bothers you, the only workaround I can think of is to also specify the mappings to Table C in the afterload method.
    Karen

  • Missing Descritpor for One to One Mapping

    Hi,
    I have a one to one mapping from an Object A to Object B. When I execute the code, I get an exception as given below. Has any one encountered the same problem ?
    Appreciate your help.
    Thanks
    Priya
    Local Exception Stack:
    Exception [TOPLINK-7009] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.ValidationException
    Exception Description: Missing descriptor for [class oracle.toplink.indirection.ValueHolder]. Verify that the descriptor has been properly registered with the Session.
         at oracle.toplink.exceptions.ValidationException.missingDescriptor(ValidationException.java:599)
         at oracle.toplink.publicinterface.UnitOfWork.registerObject(UnitOfWork.java:3086)
         at oracle.toplink.mappings.ObjectReferenceMapping.buildCloneForPartObject(ObjectReferenceMapping.java:50)
         at oracle.toplink.internal.indirection.BasicIndirectionPolicy.cloneAttribute(BasicIndirectionPolicy.java:82)
         at oracle.toplink.mappings.ForeignReferenceMapping.buildClone(ForeignReferenceMapping.java:160)
         at oracle.toplink.internal.descriptors.ObjectBuilder.populateAttributesForClone(ObjectBuilder.java:1493)
         at oracle.toplink.publicinterface.UnitOfWork.cloneAndRegisterNewObject(UnitOfWork.java:580)
         at oracle.toplink.publicinterface.UnitOfWork.internalRegisterObject(UnitOfWork.java:2261)
         at oracle.toplink.publicinterface.UnitOfWork.registerObject(UnitOfWork.java:3093)
         at com.starkey.cqm.dao.PersistenceManager.createObject(PersistenceManager.java:65)
         at com.starkey.cqm.bcs.AdminService.saveRoute(AdminService.java:217)
         at com.starkey.cqm.web.RouteAction.processCreate(RouteAction.java:183)
         at com.starkey.cqm.web.AdminAction.execute(AdminAction.java:50)

    Looks like you've mapped from ObjectA to ObjectB but accidentally set the target class to be ValueHolder. Except for the checkbox in the Mapping Workbench, you shouldn't need to specify ValueHolder in any of your mappings.

  • Two horizontal reports bottom the third one

    Is that possible to get two horizontal reports bottom the third one?
    cccccccccccccccccccccccccccccc
    caaaaaaaa 1st report aaaaaaaaaac
    cccccccccccccccccccccccccccccc
    caaa 2nd report aca 3rd report ac
    cccccccccccccccccccccccccccccc
    On the first moment I was sure it's very easy (and probably it's), but after a while, realized that I can't find solution... ;)
    options: "regions templates" and "columns position" doesn't work ofcourse because of position of 1st report.
    anyone knows the solution?
    edit: a little problem with image -> a - empty cell, c - border
    Edited by: nirud on 2009-08-26 02:42

    already done

  • Can One GL be mapped to more than one House Banks

    Dear SAP Gurus
    I have a query
    Can one GL be mapped to more than one House bank.
    as a business requirement, we need to map 2 different bank accounts to same GL and both will have different Cheque series for Automatic payment program .

    Hi,
    You meant to say in maintain same GLs iin Account IDs under single House Bank? GLs are assigned to each account IDs under a House Bank  not directly with a House Bank.
    Anyway, it is possible to map single GL to multiple Bank Accounts of House Bank, but as a standard function it is advisable to map each GL to different Bank A/c so that automatic reconcilation wont create any problem while selecting open items.
    Regards
    Prasad AV

  • Regarding iMessage, when i want to send text to a person in my contacts app, i've been getting a message saying the number has not been registered with iMessage.  How can one fix this problem?

    Regarding iMessage, when i want to send text to a person in my contacts app, i've been getting a message saying the number has not been registered with iMessage.  How can one fix this problem?  It works on the iPhone.

    It takes two to tango, maybe it's your recipient that has weak Internet/Cellular connections.

  • Help needed with HTC One regarding mic problem with noise cancellation

    I picked up an HTC One last week, and so far I am loving the phone.  Great build quality, screen, sound - all as advertised.
    However, there is one very annoying problem I am having.  When I am talking to someone, I can gear them great, but they keep telling me I sound muffled or robotic.  I performed some tests, and the problem appears to be something with the dual microphones and the HTC One's noise cancellation features.
    Here are the tests I ran:
    Typical phone call, with holding the phone as I normally do on the sides and to my ear.  Call result, pretty muffled voice.  I'd give the call quality a 5/10.
    Help the phone as I typically do, but covered the mic hole on the back of the phone.  This definatelyimproved call quality.  Was louder and clearer, but not perfect.  I'd rate it at 8/10.
    Help the phone towards the bottom, using my hand to kind of cup the bottom directing the sound to the bottom mic.  This was a further improvement in sound quality.  Rating would be 9/10.
    Help phone as normal, but covered the bottom mic hole.  Very low volume and muffled sound.  Rating a 4/10.
    Talked directly into the bottom of the phone into the bottom mic.  This gave perfect call quality and volume.  Rating a 10/10!
    Talked directly into the mic on the back of the phone. Horrible quality, couldn't hear hardly anything. Rating 0/10.
    Speaker phone on, held the phone up and moved it around as I would normally use a speaker phone.  Call quality was really nice.  Id give it 9/10.
    Speaker phone on, covered back mic hole and used speaker phone as in #7.  Very bad quality, rating 1/10 for call quality.
    Speaker phone on, covered bottom mic and help speaker phone in hand.  Really good quality, even an improvement over test #7.  Would give the call quality a 9.5/10.
    Speaker phone on, placed face down on table.  Volume a bit low, a little muffled.  Call quality 6/10.
    Speaker phone on, place face up on table.  A bit worse than test #10, low volume and a bit muffled.  Call quality is 5/10.
    Based on these tests, I know this problem has nothing to do with the network CDMA connection.  It is obvious that the noise cancellation features are a bit too aggressive, or I have some hardware problem with one or both mics.
    I question wether its really a hardware mic problem, because on non-speaker phone calls, talking directly into the bottom mic gives great quality.  And on Speaker phone, covering the bottom mic makes the speaker phone sound really good.  That's why I think there's something going on with the "Sense Sound" noise cancellation.
    Is anyone else seeing the same issues?  I want to be able to hold the phone normal on a non speaker phone call and get good quality.
    Looking for any tips and advice anyone can give.  Is it worth exchanging for a new one, as I am still in my 14 day window.
    Thanks in advance for the help!

    Here are some other threads that seem to be having similar issues:
    http://forum.xda-developers.com/showthread.php?t=2262648
    http://forum.xda-developers.com/showthread.php?t=2294532

  • How to use XSLT for mapping feild names one by one to array element

    I have a XSLT case to map all the attributes feild name(not value) which has no child to the target, which is array loop.
    I give an sample below.
    source:
    <Items xmlns="http://www.example.org/sample">
    <SourceSystem>SourceSystem2573</SourceSystem>
    <TimeStamp>2010-01-17T20:54:08.234</TimeStamp>
    <Item>
    <ID>2574</ID>
    <Type>2575</Type>
    <Name>2576</Name>
    </Item>
    </Items>
    source XSD like:
         <element name="Items" type="tns:ItemsType"></element>
         <complexType name="ItemsType">
              <sequence>
                   <element name="SourceSystem" type="string" maxOccurs="1"
                        minOccurs="1">
                   </element>
                   <element name="TimeStamp" type="dateTime" maxOccurs="1"
                        minOccurs="1">
                   </element>
                   <element name="Item" type="tns:ItemType"
                        maxOccurs="unbounded" minOccurs="1">
                   </element>
    </sequence>
         </complexType>
    <complexType name="ItemType">
              <sequence>
                   <element name="ID" type="string" maxOccurs="1"
                        minOccurs="1">
                   </element>
                   <element name="Type" type="string" maxOccurs="1"
                        minOccurs="1">
                   </element>
    <element name="Name" type="string" maxOccurs="1"
                        minOccurs="1">
                   </element>
    </sequence>
         </complexType>
    target need to be like:
    <ns1:AttributesCollection>
    <ns1:Attributes>
    <ns1:fieldname>SourceSystem</ns1:fieldname>
    </ns1:Attributes>
    <ns1:Attributes>
    <ns1:fieldname>TimeStamp</ns1:fieldname>
    </ns1:Attributes>
    <ns1:Attributes>
    <ns1:fieldname>ID</ns1:fieldname>
    </ns1:Attributes>
    <ns1:Attributes>
    <ns1:fieldname>Type</ns1:fieldname>
    </ns1:Attributes>
    <ns1:Attributes>
    <ns1:fieldname>Name</ns1:fieldname>
    </ns1:Attributes>
    </ns1:AttributesCollection>
    target XSD:
    <xs:element name="AttributesCollection" type="AttributesCollection"/>
    <xs:complexType name="AttributesCollection">
    <xs:sequence>
    <xs:element name="Attributes" type="Attributes" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Attributes">
    <xs:sequence>
    <xs:element name="fieldname" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    I know we can use local-name() to get the tag/field name,
    but I have not idea how to get these leaf field names one by one and then mapping to every array elements.
    I tried whole day but no successful
    Does anyone have some idea?
    Thanks very much!
    Keith
    Edited by: user1065212 on 17-Jan-2010 22:50
    Edited by: user1065212 on 17-Jan-2010 22:53
    Edited by: user1065212 on 17-Jan-2010 22:59

    can you paste source xsd and the correct xml output, the current one isn't really valid
    <ID>2574</TotalNumOfItems>

  • Rented 2 movies, watched one, second one kept downloading for 3 days and finally failed. I was charged for it, it never downloaded, cannot be found in "Available Downloads" and "report a problem" page NEVER loads, no email contact. Please help

    Rented 2 movies, watched one, second one kept downloading for 3 days and finally failed. I was charged for it, it never downloaded, cannot be found in "Available Downloads".
    When you go to "Report a problem" next to the item (Great Gatsby) on the email invoice or on the online account  - it takes you to online support - if you elect problems with iTune downloads the page NEVER opens...  no email contact. Please help

    This is bad - I have an Apple automated response that they got my report on 12/6, 12/10 and 12/14, and I haven't heard anything from them since the 6th when I got one reply that told me to do things I tried before reporting the problem. Between the 6th and 10th I replied to their response 4 times and they ignored me, forcing me to report a problem with two more items that wont download but getting no response.
    How do they get away with this kind of behavior, especially for someone with FIVE Core 2 Duo macs and thousands of dollars of of iTunes store purchases? I'm getting really ******.

Maybe you are looking for

  • Error while posting MM invoice.

    We are trying to post and Rack purchase Invoice using "BAPI_INCOMINGINVOICE_CREATE" but the BAPI fails and the error message that we are getting is "Field Material is a required field for G/L account 3862 21201000". We checked the GLACCOUNT data that

  • Automatic creation of Business Partner

    Is it possible to create business partner master data automatically in SAP FSCD when the claim payment is generated from Non-SAP claim system, if yes then how do we set this up.

  • HT3702 how do I cancel Zoosk dating account, I have been trying to canel for 2 months I am having problems cancel this account

    I would like to cancel my mmbership to Zoosk single dating company. I have been having problems canceling. My phone number for the acount is 937-829-0413 which is not on at this moment. I still would like to cancel my membership if I could.

  • 404 File not found error using IE

    I am getting the error message "HTTP 404 - File not found" when I attempt to call a servlet from an HTML page generated from a JSP. I get this error only in IE and not in Netscape. When I type the url for my servlet directly into IE, it works. The ur

  • Graphic glitch with ti4800SE 8x

    Hi, I just installed a ti4800SE 8x and am now experiencing problems with colored spots interrupting any games I play.  Black, blue, and green spots of color flicker throughout the game in different parts of the screen.  I did not experience this prob