Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

ORM in Lazarus / Freepascal

13 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuseppe Luigi Punzi

When I was playing with Smalltalk, I learned a little about ORM.

Now, I would like to try it under Lazarus/Frepascal. I searched, and found tiOPF. But requires FBLib, and I'm getting a lot of errors trying to compile it under Windows (I dont know if I will get more errors on OSX at home)

There are some updated version, or other package for ORM on Lazarus / Freepascal?

Reply by email

Michael Van Canneyt
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote 6 lines
When I was playing with Smalltalk, I learned a little about ORM. Now, I would like to try it under Lazarus/Frepascal. I searched, and found tiOPF. But requires FBLib, and I'm getting a lot of errors trying to compile it under Windows (I dont know if I will get more errors on OSX at home)

It does not require fblib; I use it with SQLDB in a commercial app.

There are some updated version, or other package for ORM on Lazarus / Freepascal?

There is an updated version in subversion:

Code:
https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk

Demos:
https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Demos

Docs:
https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Docs

Maybe there is a released version, but I don't know about that.

Michael.

Reply by email

Giuseppe Luigi Punzi
to Michael Van Canneyt

Hi Michael, first of all, thanks for the fast answer.

Michael Van Canneyt escribi?:

Show quoted text 13 lines
On Thu, 2 Apr 2009, Giuseppe Luigi Punzi wrote: > When I was playing with Smalltalk, I learned a little about ORM. > > Now, I would like to try it under Lazarus/Frepascal. I searched, and > found tiOPF. But requires FBLib, and I'm getting a lot of errors trying > to compile it under Windows (I dont know if I will get more errors on > OSX at home) > It does not require fblib; I use it with SQLDB in a commercial app.

Well, the .lpk requires FBLib, as describes in lazarus.wiki too (1) I downloaded the latest release on downloads section at sourceforge.

Show quoted text 19 lines
> There are some updated version, or other package for ORM on Lazarus / > Freepascal? > There is an updated version in subversion: Code: https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk Demos: https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Demos Docs: https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Docs Maybe there is a released version, but I don't know about that. Michael.

I'm downloading now to try, thanks ;)

(1) http://wiki.lazarus.freepascal.org/tiOPF#The_Setup

Reply by email

Michael Van Canneyt
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote 19 lines
Hi Michael, first of all, thanks for the fast answer. Michael Van Canneyt escribi?: > On Thu, 2 Apr 2009, Giuseppe Luigi Punzi wrote: > > >> When I was playing with Smalltalk, I learned a little about ORM. >> >> Now, I would like to try it under Lazarus/Frepascal. I searched, and >> found tiOPF. But requires FBLib, and I'm getting a lot of errors trying >> to compile it under Windows (I dont know if I will get more errors on >> OSX at home) >> > > It does not require fblib; I use it with SQLDB in a commercial app. > Well, the .lpk requires FBLib, as describes in lazarus.wiki too (1) I downloaded the latest release on downloads can simply remove the dependency. If the compiler complains about

fblib units not found, you can just remove them. It'll work fine after that.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: It does not require fblib; I use it with SQLDB in a commercial app. There is an updated…
Michael Van Canneyt wrote
It does not require fblib; I use it with SQLDB in a commercial app.

Correct. FBLib was one of the persistence layers and was enabled by default for Free Pascal / Lazarus. It has now been disabled by default and SqlDB (which is included with Free Pascal) is now enabled by default.

I have used both FBLib and SqlDB persistence layers in tiOPF in our commercial applications. But at the moment we switched everything to SqlDB.

Maybe there is a released version, but I don't know about that.

And I'm sure it's pretty old. :-( I would rather suggest fetching the Trunk revision. tiOPF has a very stable code base (even in Trunk) due to its hourly run testing framework under Windows and Linux.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi: Hi Michael, first of all, thanks for the fast answer. Michael Van Canneyt escribi?: Well,…
Giuseppe Luigi Punzi wrote
Well, the .lpk requires FBLib, as describes in lazarus.wiki too (1) I downloaded the latest release on downloads can't keep up with updating everything... :-( That wiki page is

outdated. The last released version for Free Pascal does have FBLib enabled by default - but FBLib is *not* a requirement.

Get the Trunk (svn) revision, it has many improvements since the *old* released versions. And don't worry, Trunk is very stable - I use it in our commercial apps, so will know straight away is something is broken in trunk.

If not done by somebody else already, I'll update that page tomorrow.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Giuseppe Luigi Punzi
to Graeme Geldenhuys

Hi,

Yes, tiOPF compiles well, but not tiOPFGUI with an error unit not found Htmlview. I searched on google and seems something about GTK. Some idea?

You know if tiOPF works under OSX?

Cheers.

Graeme Geldenhuys escribi?:

Show quoted text 35 lines
On Thu, Apr 2, 2009 at 4:18 PM, Giuseppe Luigi Punzi wrote: > Well, the .lpk requires FBLib, as describes in lazarus.wiki too (1) I > downloaded the latest release on downloads section at sourceforge. > I can't keep up with updating everything... :-( That wiki page is outdated. The last released version for Free Pascal does have FBLib enabled by default - but FBLib is *not* a requirement. Get the Trunk (svn) revision, it has many improvements since the *old* released versions. And don't worry, Trunk is very stable - I use it in our commercial apps, so will know straight away is something is broken in trunk. > (1) http://wiki.lazarus.freepascal.org/tiOPF#The_Setup > If not done by somebody else already, I'll update that page tomorrow. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote
Yes, tiOPF compiles well, but not tiOPFGUI with an error unit not found Htmlview. I searched on google and seems something about GTK. Some idea?

Htmlview as far as I know is a Delphi unit. Are you using the package from the Compilers/FPC/ directory? Plus, I don't support the tiOPFGUI.lpk package anymore. I gave up trying to port the tiOPF GUI components to LCL. To many inconsistencies between VCL and LCL and it just made the shared units code pretty damn ugly with all the IFDEF's. I now use the MGM mediators. This allows me to use standard (non-db) components and make them "object aware" without creating descendant components. I use them as-is with great success. Been doing this for 2 years already.

Please get an update (revision 1500) and try the
Compilers/FPC/tiopflcl.lpk package instead. I don't use the LCL components much, so I'm sure a few more tiOPF units could be added to the tiopflcl.lpk package. Just let me know if you are missing some. The tiopflcl.lpk package is a runtime only package (it doesn't register components with Lazarus IDE).

I just tested the packages under my Lazarus and they compile fine. I also compiled the
<trunk>/Demos/LCL/Demo_21_AddressBook/demo_addressbook.lpr project without issues.

You know if tiOPF works under OSX?

I don't know of anybody that tried, but it might work. The only thing I could think of that could go wrong is maybe a few IFDEF's that need to change from {LINUX} to {UNIX}. Again, please let me know of any such issues and I'll fix them ASAP.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Giuseppe Luigi Punzi
to Graeme Geldenhuys

Hi again Graeme,

Graeme Geldenhuys escribi?:

Show quoted text 17 lines
On Thu, Apr 2, 2009 at 5:30 PM, Giuseppe Luigi Punzi wrote: > Yes, tiOPF compiles well, but not tiOPFGUI with an error unit not found > Htmlview. I searched on google and seems something about GTK. Some idea? > Htmlview as far as I know is a Delphi unit. Are you using the package from the Compilers/FPC/ directory? Plus, I don't support the tiOPFGUI.lpk package anymore. I gave up trying to port the tiOPF GUI components to LCL. To many inconsistencies between VCL and LCL and it just made the shared units code pretty damn ugly with all the IFDEF's. I now use the MGM mediators. This allows me to use standard (non-db) components and make them "object aware" without creating descendant components. I use them as-is with great success. Been doing this for 2 years already.

Oh, I builded tiOPFGUI because the wiki entry sais to compile it.

Show quoted text 12 lines
Please get an update (revision 1500) and try the Compilers/FPC/tiopflcl.lpk package instead. I don't use the LCL components much, so I'm sure a few more tiOPF units could be added to the tiopflcl.lpk package. Just let me know if you are missing some. The tiopflcl.lpk package is a runtime only package (it doesn't register components with Lazarus IDE). I just tested the packages under my Lazarus and they compile fine. I also compiled the <trunk>/Demos/LCL/Demo_21_AddressBook/demo_addressbook.lpr project without issues.

Ok, I can compile tiOPF and tiOPFlcl. I will play a little with it on my Mac later.

I printed http://tiopf.sourceforge.net/Doc/overview/index.shtml

There are more interesting information about this to study?

Thanks a lot.

Reply by email

Giuseppe Luigi Punzi
to Graeme Geldenhuys: On Thu, Apr 2, 2009 at 5:30 PM, Giuseppe Luigi Punzi Htmlview as far as I know is a…

Ok, sorry, I didn't saw the Concepts Manual:
http://tiopf.sourceforge.net/Doc/Concepts/index.shtml

Graeme Geldenhuys escribi?:

Show quoted text 51 lines
On Thu, Apr 2, 2009 at 5:30 PM, Giuseppe Luigi Punzi wrote: > Yes, tiOPF compiles well, but not tiOPFGUI with an error unit not found > Htmlview. I searched on google and seems something about GTK. Some idea? > Htmlview as far as I know is a Delphi unit. Are you using the package from the Compilers/FPC/ directory? Plus, I don't support the tiOPFGUI.lpk package anymore. I gave up trying to port the tiOPF GUI components to LCL. To many inconsistencies between VCL and LCL and it just made the shared units code pretty damn ugly with all the IFDEF's. I now use the MGM mediators. This allows me to use standard (non-db) components and make them "object aware" without creating descendant components. I use them as-is with great success. Been doing this for 2 years already. Please get an update (revision 1500) and try the Compilers/FPC/tiopflcl.lpk package instead. I don't use the LCL components much, so I'm sure a few more tiOPF units could be added to the tiopflcl.lpk package. Just let me know if you are missing some. The tiopflcl.lpk package is a runtime only package (it doesn't register components with Lazarus IDE). I just tested the packages under my Lazarus and they compile fine. I also compiled the <trunk>/Demos/LCL/Demo_21_AddressBook/demo_addressbook.lpr project without issues. > You know if tiOPF works under OSX? > I don't know of anybody that tried, but it might work. The only thing I could think of that could go wrong is maybe a few IFDEF's that need to change from {LINUX} to {UNIX}. Again, please let me know of any such issues and I'll fix them ASAP. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Giuseppe Luigi Punzi Ruiz
to Graeme Geldenhuys: On Thu, Apr 2, 2009 at 5:30 PM, Giuseppe Luigi Punzi Htmlview as far as I know is a…
Show quoted text 8 lines
> You know if tiOPF works under OSX? I don't know of anybody that tried, but it might work. The only thing I could think of that could go wrong is maybe a few IFDEF's that need to change from {LINUX} to {UNIX}. Again, please let me know of any such issues and I'll fix them ASAP.

Ok, first attempt under OSX.

Compiling tiOPF.lpk

/Volumes/DATOS/desarrollo/tiOPF2/Source/Core/tiLinux.pas(29,11) Error:
Incompatible types: got "Pointer" expected "LongWord"

Cheers.

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi: Graeme Geldenhuys escribi?: Oh, I builded tiOPFGUI because the wiki entry sais to compile…
Giuseppe Luigi Punzi wrote
Oh, I builded tiOPFGUI because the wiki entry sais to compile it.

Like I said, that wiki page is outdated.

Ok, I can compile tiOPF and tiOPFlcl. I will play a little with it on my Mac later.

Please keep use informed on how things go with tiOPF and MacOS. If you want more tiOPF support, please join the newsgroups available.

http://tiopf.sourceforge.net/Support.shtml

There are more interesting information about this to study?

http://opensoft.homeip.net/articles/

There is an article on Model-GUI-Mediator - an introduction on how you can bind data to standard gui components. Michael has also written excellent articles on available persistence frameworks including tiOPF. All downloadable from the above website.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Osvaldo Filho
to Graeme Geldenhuys

Hi, try pressobjects.
Simple and Powerfull.
Implementation, now, is focused on lazarus;

http://pressobjects.org

2009/4/2 Graeme Geldenhuys

Show quoted text 38 lines
On Thu, Apr 2, 2009 at 7:22 PM, Giuseppe Luigi Punzi wrote: > > Oh, I builded tiOPFGUI because the wiki entry sais to compile it. Like I said, that wiki page is outdated. > Ok, I can compile tiOPF and tiOPFlcl. I will play a little with it on my > Mac later. Please keep use informed on how things go with tiOPF and MacOS. If you want more tiOPF support, please join the newsgroups available. http://tiopf.sourceforge.net/Support.shtml > There are more interesting information about this to study? http://opensoft.homeip.net/articles/ There is an article on Model-GUI-Mediator - an introduction on how you can bind data to standard gui components. Michael has also written excellent articles on available persistence frameworks including tiOPF. All downloadable from the above website. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090606/a927730d/attachment.html>

Reply by email