Skip site navigation (1) Skip section navigation (2)

Re: Stroring html form settings

From: Martin Gainty <mgainty(at)hotmail(dot)com>
To: Dianne Yumul <dianne(at)wellsgaming(dot)com>, PostgreSQL List<pgsql-general(at)postgresql(dot)org>
Subject: Re: Stroring html form settings
Date: 2008-09-26 16:55:34
Message-ID: BLU142-W4214A959119D0480B62DB3AE470@phx.gbl (view raw or flat)
Thread:
Lists: pgsql-general
I would suggest trying to keep architecture simple with a one-to-one correspondence between
Architecture classes and the class attributes and DB Tables and the DB table's columns
This will come in handy when and if you want to look at ORM tools to persist the class attributes
to DB tables and columns via Hibernate or IBatis
here is a great example which details a Table called Honey and a class called Honey which will persist class contents to the PostGRES DB by utilising the methods available from InitSessionFactory

http://www.laliluna.de/first-hibernate-example-tutorial.html

HTH
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> From: dianne(at)wellsgaming(dot)com
> Subject: Re: [GENERAL] Stroring html form settings
> Date: Fri, 26 Sep 2008 09:23:21 -0700
> To: pgsql-general(at)postgresql(dot)org
> 
> First, I want to thank you for your help. You have made great points  
> and I just want to respond to some of your questions.
> 
> > My first thought is that if you use a combined "info" field, you'll
> > lose the ability to easily do any kind of meaningful data analysis
> > based on which boxes are checked.  If you just want to record what a
> > given user said at a certain time, but don't need it for any other,
> > more interesting evaluation of the data, then why bother with a
> > database?
> 
> You are right that I don't really need to do any evaluation of the  
> data, I just need to be able to get the default values of a form  
> every time the user logs on. Each user may have their own default  
> value for a form, and each form will have different components. A  
> database was the first (may be not the best?) thing I thought of.  
> Would you have other suggestions of how I should store them?
> 
> > If it were me, I would probably store the form values in the database
> > fields, so that the table's columns matched the various data inputs in
> > the form.
> 
> If the structure of each report did not differ this would work great  
> but unfortunately it does.
> 
> Thank you again.
> 
> Dianne
> 
> -- 
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

In response to

pgsql-general by date

Next:From: Reece HartDate: 2008-09-26 17:01:47
Subject: Re: Stroring html form settings
Previous:From: Dianne YumulDate: 2008-09-26 16:34:44
Subject: Re: Stroring html form settings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group