Hi, I have been trying to create a simple relation between two entities "Car" and "Engine". So, due to One-to-One it's not a relation. Here is my items:
<itemtypes>
<itemtype code="Car" extends="GenericItem" autocreate="true" generate="true">
<deployment table="Car" typecode="10111"/>
<attributes>
<attribute qualifier="engine" type="Engine">
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>
<itemtype code="Engine" extends="GenericItem" autocreate="true" generate="true">
<deployment table="Engine" typecode="10112"/>
<attributes>
<attribute qualifier="power" type="java.lang.Integer">
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>
</itemtypes>
Here is my wrong impex file.
INSERT Car; name[unique=true]; &engineid;
; Bentley; engineuid
; Lada; engineuid
; Zaporojec; engineuid
INSERT Engine; name[unique=true]; power; pk[unique = true]
; Hemi; 1500; engineuid
; Chevrolet; 600; engineuid
; Nuclear; 1000000; engineuid
How it should looks like to import new data for created itemtypes above? Thanks in advance!