openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sharath.h (JIRA)" <>
Subject [jira] Created: (OPENJPA-204) Nesting of Emebedded in Embeddable element
Date Thu, 05 Apr 2007 19:59:32 GMT
Nesting of Emebedded in Embeddable element

                 Key: OPENJPA-204
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 0.9.6
            Reporter: sharath.h

In orm_1_0.xsd or orm-xsd.rsrc files under the <xsd:complexType name="embeddable-attributes">
the <xsd:element name="embedded" type="orm:embedded"    minOccurs="0" maxOccurs="unbounded"/>
is not present.
Please let me know if there is any valid reason behind it.Was the embedded element in embeddable-attributes
was accidently missed out?
I faced the issue when i tried the example something like as shown below:
class A
  int id;
  B objB;
class B
  String str1;
  Date d;
  C objC;
class C
   String str2;
I wanted to persist object A into a single table by having object B as embedded and object
B inturn having object C as embedded.
My corresponding orm mapping file is as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="" xmlns:xsi=""
xsi:schemaLocation=" orm_1_0.xsd" version="1.0">
<entity class="A">    
<table name="TableA"/>    
<id name="id">        
 <column name="ID"/>                   
<embedded name="objB"/>
<embeddable class="B">      
<basic name="str1">
   <column name="COL2"/>
<basic name="d">
   <column name="DateCol"/>
<embedded name="objC"/>

<embeddable class="C">      
<basic name="str2">
   <column name="COL3"/>

This was not possible due to orm schema restriction.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message