[Helma-user] Sample of relationships

Maksim Lin for technical support mailling lists maksim_lin at ngv.vic.gov.au
Thu Aug 30 01:46:23 CEST 2007


Hi,

If I understand your question correclty, it sounds like you need to
create 3 Prototypes:

Customer
Order
OrderItem

To do that, create folders with those names in your helma app folder.
Assuming you call you app orders-app you need to have:

helma-1.6.0/apps/orders-app
helma-1.6.0/apps/orders-app/Customer
helma-1.6.0/apps/orders-app/Order
helma-1.6.0/apps/orders-app/OrderItem

then in each you will need an appropriate type.properties file

Customer/type.properties:

name
address
order = object(Order)

Order/type.properties:

items = collection(OrderItem)

OrderItem/type.properties:
 
widgetName
quantity
price


(Of course I just made up the above properties for customers and
orderitems - you would use whatever you need for your business data).

The above type.proeprties is just using the builtin xml-based database.
If you need to use a SQL DB (like MySQL) you need to have a extra
settings, see here for more info on that:
http://helma.org/docs/guide/mapping/

I also highly recommend working through the tutorial:
http://helma.org/docs/tutorial/

hope that helps,

Maks.


> -----Original Message-----
> From: helma-user-bounces at helma.org 
> [mailto:helma-user-bounces at helma.org] On Behalf Of edaros
> Sent: Thursday, 30 August 2007 04:27
> To: helma-user at helma.org
> Subject: [Helma-user] Sample of relationships
> 
> 
> Hi everyone,
> I am trying to use this framework for our company intranet, 
> but i'm getting crazy :) I tried various things without 
> success... Does it exist a sample where someone realized a 
> 1->n-1->m relationship. I mean the typical
> customer->order->order_row with the navigations between the 
> various level??
> May be i am doing something wrong but i am unable to find 
> examples or ideas about this... and the documentation is not 
> so clear about this thing...
> Hoping to find an answer
> 
> Best Regards
> E.D.R.
> --
> View this message in context: 
> http://www.nabble.com/Sample-of-relationships-tf4313746s2589.h
> tml#a12281830
> Sent from the Helma - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
> 
> 
> 


More information about the Helma-user mailing list