Home » Eclipse Projects » DTP » EMF and DTP
EMF and DTP [message #14441] |
Mon, 15 May 2006 19:45  |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Hi everyone,
I am very familiar with EMF and Eclipse, but I know very little about
DTP. When I first heard about DTP I thought it might be exactly what
was looking for, but I'm not sure. Here is what I would like to do.
I have an Ecore model. From that I have generated my Java code and I
used the editors to input a bunch of information. I would like to now
create a Database schema from my ecore model, connect to the database,
generate the tables and save all my data. Then, instead of reading my
EMF instance back from an XML file, I would like to read it from the
database.
Can DTP do this? Is it heading in this direction or is this well outside
the scope of the project.
Cheers,
Ian
|
|
|
Re: EMF and DTP [message #14533 is a reply to message #14441] |
Tue, 16 May 2006 17:41   |
Eclipse User |
|
|
|
Ian,
That's not really the focus of DTP. It sounds like you need a
Hibernate-type facility for EMF models. I did a quick search for EMF
and Hibernate in on the eclipse.org site and found this reference, which
might be what you are looking for: http://www.elver.org/
Brian Payton
SQL Tools Development
IBM Silicon Valley Lab
Ian Bull wrote:
> Hi everyone,
>
> I am very familiar with EMF and Eclipse, but I know very little about
> DTP. When I first heard about DTP I thought it might be exactly what
> was looking for, but I'm not sure. Here is what I would like to do.
>
> I have an Ecore model. From that I have generated my Java code and I
> used the editors to input a bunch of information. I would like to now
> create a Database schema from my ecore model, connect to the database,
> generate the tables and save all my data. Then, instead of reading my
> EMF instance back from an XML file, I would like to read it from the
> database.
>
> Can DTP do this? Is it heading in this direction or is this well
> outside the scope of the project.
>
> Cheers,
> Ian
|
|
|
Re: EMF and DTP [message #14745 is a reply to message #14533] |
Wed, 24 May 2006 01:22   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Thanks Brian.
I will mess around with elver.
What about for getting data out of a database. To be honest, database
technologies is one area of computer science i have spent very little
time studying. I really like EMF because I can walk my data model and
know exactly what I am getting. It would be really nice to issue a
database query and get back a EMF Instance model as my result. For
example, if I had a database of students, courses, grades, etc... it
would be really cool to issue a query (along with an ECore model) to
say, get all the grades for a student, and I would get back a resource
set with a list of students. Each student may have a reference to a
course and the grade they received in that course.
Of course I could issue this a a straight SQL query, but then I would
have to read the rows and get the information, then construct the
instance model. Putting things back in the database, and maintaining
transactions would be very difficult (and maybe that's what Hibernate does).
This may be well out of the scope of DTP, and it may not even make sense
from a technical standpoint. I have spent most of my time over the
past few years working with many parts of Eclipse (especially EMF) and
I really like how it can be used as the data center. I am just worried
about scalability of XML for very, very large datasets.
Actually, a closer look at Hibernate and it seems their HQL language may
be heading in this direction.
Anyways, I am just trying to get some more understanding of the Callisto
projects I haven't used yet. I am really looking forward to the webinar.
Cheers,
Ian
Brian Payton wrote:
> Ian,
>
> That's not really the focus of DTP. It sounds like you need a
> Hibernate-type facility for EMF models. I did a quick search for EMF
> and Hibernate in on the eclipse.org site and found this reference, which
> might be what you are looking for: http://www.elver.org/
>
> Brian Payton
> SQL Tools Development
> IBM Silicon Valley Lab
>
> Ian Bull wrote:
>> Hi everyone,
>>
>> I am very familiar with EMF and Eclipse, but I know very little about
>> DTP. When I first heard about DTP I thought it might be exactly what
>> was looking for, but I'm not sure. Here is what I would like to do.
>>
>> I have an Ecore model. From that I have generated my Java code and I
>> used the editors to input a bunch of information. I would like to now
>> create a Database schema from my ecore model, connect to the database,
>> generate the tables and save all my data. Then, instead of reading my
>> EMF instance back from an XML file, I would like to read it from the
>> database.
>>
>> Can DTP do this? Is it heading in this direction or is this well
>> outside the scope of the project.
>>
>> Cheers,
>> Ian
|
|
|
Re: EMF and DTP [message #14806 is a reply to message #14745] |
Wed, 24 May 2006 17:35  |
Eclipse User |
|
|
|
Ian,
For an EMF representation of data resulting from a database query, you
should check out SDO. SDO (Service Data Objects) is built on EMF and
comes bundled with it in the EMF download. Here's an overview:
http://www-128.ibm.com/developerworks/java/library/j-sdo/
You should also take a look at the ODA (Open Data Access) part of DTP
and see how that might fit with what you want to do.
Regards,
Brian
Ian Bull wrote:
> Thanks Brian.
>
> I will mess around with elver.
>
> What about for getting data out of a database. To be honest, database
> technologies is one area of computer science i have spent very little
> time studying. I really like EMF because I can walk my data model and
> know exactly what I am getting. It would be really nice to issue a
> database query and get back a EMF Instance model as my result. For
> example, if I had a database of students, courses, grades, etc... it
> would be really cool to issue a query (along with an ECore model) to
> say, get all the grades for a student, and I would get back a resource
> set with a list of students. Each student may have a reference to a
> course and the grade they received in that course.
>
> Of course I could issue this a a straight SQL query, but then I would
> have to read the rows and get the information, then construct the
> instance model. Putting things back in the database, and maintaining
> transactions would be very difficult (and maybe that's what Hibernate
> does).
>
> This may be well out of the scope of DTP, and it may not even make
> sense from a technical standpoint. I have spent most of my time over
> the past few years working with many parts of Eclipse (especially
> EMF) and I really like how it can be used as the data center. I am
> just worried about scalability of XML for very, very large datasets.
>
> Actually, a closer look at Hibernate and it seems their HQL language
> may be heading in this direction.
>
> Anyways, I am just trying to get some more understanding of the
> Callisto projects I haven't used yet. I am really looking forward to
> the webinar.
>
> Cheers,
> Ian
>
> Brian Payton wrote:
>> Ian,
>>
>> That's not really the focus of DTP. It sounds like you need a
>> Hibernate-type facility for EMF models. I did a quick search for EMF
>> and Hibernate in on the eclipse.org site and found this reference,
>> which might be what you are looking for: http://www.elver.org/
>>
>> Brian Payton
>> SQL Tools Development
>> IBM Silicon Valley Lab
>>
>> Ian Bull wrote:
>>> Hi everyone,
>>>
>>> I am very familiar with EMF and Eclipse, but I know very little
>>> about DTP. When I first heard about DTP I thought it might be
>>> exactly what was looking for, but I'm not sure. Here is what I would
>>> like to do.
>>>
>>> I have an Ecore model. From that I have generated my Java code and
>>> I used the editors to input a bunch of information. I would like to
>>> now create a Database schema from my ecore model, connect to the
>>> database, generate the tables and save all my data. Then, instead
>>> of reading my EMF instance back from an XML file, I would like to
>>> read it from the database.
>>>
>>> Can DTP do this? Is it heading in this direction or is this well
>>> outside the scope of the project.
>>>
>>> Cheers,
>>> Ian
|
|
|
Re: EMF and DTP [message #577845 is a reply to message #14441] |
Tue, 16 May 2006 17:41  |
Eclipse User |
|
|
|
Ian,
That's not really the focus of DTP. It sounds like you need a
Hibernate-type facility for EMF models. I did a quick search for EMF
and Hibernate in on the eclipse.org site and found this reference, which
might be what you are looking for: http://www.elver.org/
Brian Payton
SQL Tools Development
IBM Silicon Valley Lab
Ian Bull wrote:
> Hi everyone,
>
> I am very familiar with EMF and Eclipse, but I know very little about
> DTP. When I first heard about DTP I thought it might be exactly what
> was looking for, but I'm not sure. Here is what I would like to do.
>
> I have an Ecore model. From that I have generated my Java code and I
> used the editors to input a bunch of information. I would like to now
> create a Database schema from my ecore model, connect to the database,
> generate the tables and save all my data. Then, instead of reading my
> EMF instance back from an XML file, I would like to read it from the
> database.
>
> Can DTP do this? Is it heading in this direction or is this well
> outside the scope of the project.
>
> Cheers,
> Ian
|
|
|
Re: EMF and DTP [message #578150 is a reply to message #14533] |
Wed, 24 May 2006 01:22  |
Eclipse User |
|
|
|
Thanks Brian.
I will mess around with elver.
What about for getting data out of a database. To be honest, database
technologies is one area of computer science i have spent very little
time studying. I really like EMF because I can walk my data model and
know exactly what I am getting. It would be really nice to issue a
database query and get back a EMF Instance model as my result. For
example, if I had a database of students, courses, grades, etc... it
would be really cool to issue a query (along with an ECore model) to
say, get all the grades for a student, and I would get back a resource
set with a list of students. Each student may have a reference to a
course and the grade they received in that course.
Of course I could issue this a a straight SQL query, but then I would
have to read the rows and get the information, then construct the
instance model. Putting things back in the database, and maintaining
transactions would be very difficult (and maybe that's what Hibernate does).
This may be well out of the scope of DTP, and it may not even make sense
from a technical standpoint. I have spent most of my time over the
past few years working with many parts of Eclipse (especially EMF) and
I really like how it can be used as the data center. I am just worried
about scalability of XML for very, very large datasets.
Actually, a closer look at Hibernate and it seems their HQL language may
be heading in this direction.
Anyways, I am just trying to get some more understanding of the Callisto
projects I haven't used yet. I am really looking forward to the webinar.
Cheers,
Ian
Brian Payton wrote:
> Ian,
>
> That's not really the focus of DTP. It sounds like you need a
> Hibernate-type facility for EMF models. I did a quick search for EMF
> and Hibernate in on the eclipse.org site and found this reference, which
> might be what you are looking for: http://www.elver.org/
>
> Brian Payton
> SQL Tools Development
> IBM Silicon Valley Lab
>
> Ian Bull wrote:
>> Hi everyone,
>>
>> I am very familiar with EMF and Eclipse, but I know very little about
>> DTP. When I first heard about DTP I thought it might be exactly what
>> was looking for, but I'm not sure. Here is what I would like to do.
>>
>> I have an Ecore model. From that I have generated my Java code and I
>> used the editors to input a bunch of information. I would like to now
>> create a Database schema from my ecore model, connect to the database,
>> generate the tables and save all my data. Then, instead of reading my
>> EMF instance back from an XML file, I would like to read it from the
>> database.
>>
>> Can DTP do this? Is it heading in this direction or is this well
>> outside the scope of the project.
>>
>> Cheers,
>> Ian
|
|
|
Re: EMF and DTP [message #578192 is a reply to message #14745] |
Wed, 24 May 2006 17:35  |
Eclipse User |
|
|
|
Ian,
For an EMF representation of data resulting from a database query, you
should check out SDO. SDO (Service Data Objects) is built on EMF and
comes bundled with it in the EMF download. Here's an overview:
http://www-128.ibm.com/developerworks/java/library/j-sdo/
You should also take a look at the ODA (Open Data Access) part of DTP
and see how that might fit with what you want to do.
Regards,
Brian
Ian Bull wrote:
> Thanks Brian.
>
> I will mess around with elver.
>
> What about for getting data out of a database. To be honest, database
> technologies is one area of computer science i have spent very little
> time studying. I really like EMF because I can walk my data model and
> know exactly what I am getting. It would be really nice to issue a
> database query and get back a EMF Instance model as my result. For
> example, if I had a database of students, courses, grades, etc... it
> would be really cool to issue a query (along with an ECore model) to
> say, get all the grades for a student, and I would get back a resource
> set with a list of students. Each student may have a reference to a
> course and the grade they received in that course.
>
> Of course I could issue this a a straight SQL query, but then I would
> have to read the rows and get the information, then construct the
> instance model. Putting things back in the database, and maintaining
> transactions would be very difficult (and maybe that's what Hibernate
> does).
>
> This may be well out of the scope of DTP, and it may not even make
> sense from a technical standpoint. I have spent most of my time over
> the past few years working with many parts of Eclipse (especially
> EMF) and I really like how it can be used as the data center. I am
> just worried about scalability of XML for very, very large datasets.
>
> Actually, a closer look at Hibernate and it seems their HQL language
> may be heading in this direction.
>
> Anyways, I am just trying to get some more understanding of the
> Callisto projects I haven't used yet. I am really looking forward to
> the webinar.
>
> Cheers,
> Ian
>
> Brian Payton wrote:
>> Ian,
>>
>> That's not really the focus of DTP. It sounds like you need a
>> Hibernate-type facility for EMF models. I did a quick search for EMF
>> and Hibernate in on the eclipse.org site and found this reference,
>> which might be what you are looking for: http://www.elver.org/
>>
>> Brian Payton
>> SQL Tools Development
>> IBM Silicon Valley Lab
>>
>> Ian Bull wrote:
>>> Hi everyone,
>>>
>>> I am very familiar with EMF and Eclipse, but I know very little
>>> about DTP. When I first heard about DTP I thought it might be
>>> exactly what was looking for, but I'm not sure. Here is what I would
>>> like to do.
>>>
>>> I have an Ecore model. From that I have generated my Java code and
>>> I used the editors to input a bunch of information. I would like to
>>> now create a Database schema from my ecore model, connect to the
>>> database, generate the tables and save all my data. Then, instead
>>> of reading my EMF instance back from an XML file, I would like to
>>> read it from the database.
>>>
>>> Can DTP do this? Is it heading in this direction or is this well
>>> outside the scope of the project.
>>>
>>> Cheers,
>>> Ian
|
|
|
Goto Forum:
Current Time: Mon Apr 28 02:43:34 EDT 2025
Powered by FUDForum. Page generated in 0.03166 seconds
|