Bug 1279911

Summary: User Defined properties are exported in each model in Dynamic VDB
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED NOTABUG QA Contact: Andrej Smigala <asmigala>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: blafond, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 13:32:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrej Smigala 2015-11-10 13:01:23 UTC
When exporting a VDB with user defined properties, the properties are added to each model in the resulting -vdb.xml. It would make more sense to include them once in the vdb root.

Current -vdb.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<vdb name="CustomPropertyVdb" version="1">

	<description />

	<property name="validationDateTime" value="Tue Nov 10 13:51:23 CET 2015" />

	<property name="validationVersion" value="8.7.1" />

	<model name="ViewModel2" type="VIRTUAL">

		<property name="lib" value="test" />

		<property name="myCustomProperty" value="someValue" />

		<metadata type="DDL"><![CDATA[ ... ]]></metadata>

	</model>

	<model name="ViewModel" type="VIRTUAL">

		<property name="lib" value="test" />

		<property name="myCustomProperty" value="someValue" />

		<metadata type="DDL"><![CDATA[ ... ]]></metadata>

	</model>

</vdb>

Expected -vdb.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<vdb name="CustomPropertyVdb" version="1">

	<description />

	<property name="validationDateTime" value="Tue Nov 10 13:51:23 CET 2015" />

	<property name="validationVersion" value="8.7.1" />

	<property name="lib" value="test" />

	<property name="myCustomProperty" value="someValue" />

	<model name="ViewModel2" type="VIRTUAL">

		<metadata type="DDL"><![CDATA[ ... ]]></metadata>

	</model>

	<model name="ViewModel" type="VIRTUAL">

		<metadata type="DDL"><![CDATA[ ... ]]></metadata>

	</model>

</vdb>

Comment 2 Barry LaFond 2015-12-07 13:32:20 UTC
Using only JIRA now.  Marking as closed

Comment 3 JBoss JIRA Server 2016-01-19 22:06:54 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2722 to Resolved

Comment 4 JBoss JIRA Server 2016-02-22 08:59:40 UTC
Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2722 to Closed