Page 1 of 1
Define DataRelation
Posted: Fri May 23, 2014 3:38 pm
by aescot
Good afternoon,
I am evaluating your software for maybe use it.
I have somes questions concerning data relations :
What is the best way to define data table relations ?
I try to declare relation like this :
Code: Select all
ArrayList<String> parentColumn = new ArrayList<String>();
parentColumn.add("IdSup");
ArrayList<String> childColumn = new ArrayList<String>();
childColumn.add("IdSup");
StiDataRelation relation = new StiDataRelation("Support", "Support", "Support", tableSource2, tableSource1, childColumn, parentColumn);
But it is not easy to use with an Object Relational Mapping like Hibernate. Is there a btter way ?
Moreover, is the data file have to specify relation ?
Thanks for your helps and support.
Regards
Re: Define DataRelation
Posted: Mon May 26, 2014 11:33 am
by Alex K.
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Re: Define DataRelation
Posted: Tue May 27, 2014 8:35 am
by aescot
Hello,
My question is very similar to this recent post
http://forum.stimulsoft.com/viewtopic.php?f=19&t=38402 because I want to map your software to my entities bean which are used by hibernate.
In your demo application, you define your objects and relations using a xsd file. When I see a relation beetween two entities, it is not specify if it is a One to many or a many to one relation. Is it normal ?
And then, how can I construct a XML data file according to this relation ?
For exemple, If I have an object which contains another object (his relation for the report), how I have to send the data ?
Is it not possible to directly give the full object and bypassing the XML data file ?
Thanks for your help.
Regards,
Alex
Re: Define DataRelation
Posted: Tue May 27, 2014 11:11 am
by Alex K.
Hello,
We will try to prepare the sample with using relations.
Our products support standard XML data, you can create them any available methods.
Thank you.
Re: Define DataRelation
Posted: Tue May 27, 2014 2:02 pm
by aescot
Thanks for your answer Aleksey, I am waiting to your sample.
Yes, I have seen that it is possible to give data using a XML file as in your demo application but it seems complicated to write it if there are many relations between objects.
It is that why I am fully interested if there is another way to send data like RegBusinessObject class in .NET which permit to give to your software the complete object.
Or maybe another way ?
Thanks for your help.
Alex
Re: Define DataRelation
Posted: Wed May 28, 2014 6:10 am
by Vadim
Hello.
Here is the sample of creating report with relation.
aescot wrote:Thanks for your answer Aleksey, I am waiting to your sample.
Yes, I have seen that it is possible to give data using a XML file as in your demo application but it seems complicated to write it if there are many relations between objects.
It is that why I am fully interested if there is another way to send data like RegBusinessObject class in .NET which permit to give to your software the complete object.
Or maybe another way ?
Thanks for your help.
Alex
Re: Define DataRelation
Posted: Wed May 28, 2014 3:56 pm
by aescot
I will analyze your example. Thanks.
Re: Define DataRelation
Posted: Thu May 29, 2014 5:37 am
by Andrew
Hello,
Please let us know about the result.
Thank you.