Easy import/export (xml?) of specifics

Let us know your needs for new features.

Easy import/export (xml?) of specifics

Postby robau » Tue May 29, 2012 11:55 am

Hi,

I wrote a nice generic model (somewhat similar to the SimpleService tutorial) for generation of objects for hibernate-orm. I already have a project with generated sourcecode for these objects; the source of that generator is xml.

I want to 'import' these definitions to my new project; I was hoping I could make an import-xml-template based on my model; and then convert my other xml to this template; and then load it. As I have over 400 object-types averaging 10-30 attributes and 0-5 relations, it is a lot of work to do it by hand.

To give some extra context, I have these classes:

Entity, Relation, Attribute(name, column, required, length)

Entity has 0..N Relations
Entity has 0..N Attributes

My previous xml looks somewhat like this:

<entity name="">
<attribute name="" column=""> ....
<relation name="" entity="" type=""></relation>...
</entity>
robau
 
Posts: 4
Joined: Tue May 29, 2012 9:40 am

Re: Easy import/export (xml?) of specifics

Postby reto » Tue May 29, 2012 8:04 pm

Hi Rob,

In the upcoming version 5.4.x of the Enterprise Edition we will provide generic XML import and export.

For that reason you can specify your own XML model where you state, which classes shall be exported/import from/to an XML file. Based on this information a corresponding XSD is generated automatically.

As you figured out exporting is always easy while importing needs a little bit of programming.

As a alternative solution you might import your data using the CSV import wizard. But there are limitations on relations.

  • Right mouse click on the project folder you like to import
  • Select Import...
  • Select Actifsource/Import CSV...
  • Specify the type of class which shall be created
  • Specify the CSV file. One object per line. Attributes separated by comma
  • Start with an easy example
reto
 
Posts: 101
Joined: Thu Aug 05, 2010 2:45 pm
Location: Switzerland


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron