Book a Demo

Author Topic: How to create Pojos from Table  (Read 2714 times)

Ezequias Rodrigues da Rocha

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How to create Pojos from Table
« on: August 25, 2008, 04:53:41 am »
Hi,

I would like to know if EA does generate POJOS (base class to persist) based on Table component.

It would be a great task to generate POJOs (with getters and setters) in many languages like ;D Java e C#.

Regards
Ezequias Rodrigues da Rocha ;)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to create Pojos from Table
« Reply #1 on: August 25, 2008, 05:05:36 am »
Look into Transformation in the EA documentation. That should get you started.
No, you can't have it!

Ezequias Rodrigues da Rocha

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to create Pojos from Table
« Reply #2 on: August 25, 2008, 06:12:19 am »
Thank you.

I did noticed that there is the opposite path than I desire. My project was based initialy on a Data Model and now I must generate classes based on the Fields of my table.

Is that possible ?

Ps. The transformation on EA is really good.

Regars


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to create Pojos from Table
« Reply #3 on: August 25, 2008, 09:22:37 am »
Sorry Ezequias,

I should have noticed the direction you were going the first time. You were quite clear.

You can do what you want, but you will have to create your own transformation. There might be some examples on the Sparx site, so look at the resources page. Sparx have created some new 'guidebooks' and posted them in the past week, so even if you've checked the site before this would be a good time to refresh your memory.

There have been some threads in the forum concerning this. I do not remember anything recent, so you'd have to search back quite a while. I do not remember any complete solutions being posted - but that might only be a limitation of my memory - but there are definitely some hints, guidelines, and lessons learned.

David
No, you can't have it!

Ezequias Rodrigues da Rocha

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to create Pojos from Table
« Reply #4 on: August 26, 2008, 01:05:42 am »
OK no problem,

I already generate my pojos on C#. The generation is very easy.


Sincerely
Ezequias