Hello,

We are using BEA Kodo JDO, but I think my question can be solved within the 
OpenJPA classes.

What I need is propagation of mapping hints from a package.jdo file to a 
separate
and already existing package-mysql.orm file.

Consider the following example:

"package.jdo"
<class name="EmailPoImpl" detachable="true">
  <inheritance>
        <discriminator value="B.115.0" />
  </inheritance>
  <field name="message" default-fetch-group="true">
    <column jdbc-type="longvarchar" />
  </field>
</class>

"package-mysql.orm"
<class name="EmailPoImpl" table="EMAILPOIMPL">
  <inheritance strategy="new-table">
  <join column="ID"/>
    <discriminator value="B.115.0"/>
  </inheritance>
  <field name="message">
    <column name="MESSAGE" jdbc-type="varchar"/>
  </field>
</class>

Our requirement is that the next invocation of MappingTool discovers the 
"longvarchar" in the field meta data,
changes the orm file accordingly and the SchemaTool then emits an ALTER TABLE 
MODIFY statement.

Can you please give me some hints into the source code? I am currently 
investigating the parsers,
JDOMetaDataParser and JDORMetaDataParser, but I have the impression that the 
crucial point is somewhere else,
maybe FieldMappingInfo or the Meta Data Repository.

Thank you very much.

--

Mit freundlichen Grüßen
Frank Jagla

--------------------------------------------

skally - Gesellschaft für Logistik- und Informationssysteme mbH, 
Konrad-Zuse-Straße 10, 44801 Bochum
Amtsgericht Bochum, HRB 4297; USt-ID-Nr. DE198585621; Geschäftsführer: Reimund 
Ott, Wolfgang A. Vitt
Telefon: 0234 - 9708 500  Telefax: 0234-9708 501  E-Mail: [EMAIL PROTECTED]

Haftungsausschluss:
Diese Nachricht enthält vertrauliche Informationen und ist ausschließlich für den Adressaten bestimmt. Falls Sie die Daten irrtümlich erhalten haben, nehmen Sie bitte Kontakt mit dem Absender auf und löschen Sie die Daten auf jedem Computer und Datenträger. Die skally GmbH ist nicht verantwortlich für die ordnungsgemäße, vollständige und verzögerungsfreie Übertragung der Nachricht. Der Inhalt der E-Mail ist nur rechtsverbindlich, wenn er unsererseits durch einen Brief oder ein Fax entsprechend bestätigt wird.

Reply via email to