
 
 * *   F o l d e r   E R S c r i p t _ r 3 / e x a m p l e D a t a M o d e l s   * * 
 
 
 
 T h i s   f o l d e r   c o n t a i n s   E R   m o d e l s   u s e d   t o   t e s t   t h e   i m p l m e n t a t i o n   o f     l o g i c a l   t o   
 
 p h y s i c a l   E R   m o d e l   t r a n s f o r m a t i o n   a n d   b a c k - e n d   c o d e   g e n e r a t i o n .   S o m e   o f   t h e s e   
 
 e x a m p l e s   a r e   u s e d   a s   e x a m p l e s   o n   J o h n   C a r t m e l l ' s     w w w . e n t i t y m o d e l l i n g . o r g   
 
 w e b s i t e . 
 
 
 
 T h e   E R   m o d e l s   i n   t h e   s r c   s u b f o l d e r   a r e   l o g i c a l   m o d e l s   a n d   n e e d     t o   b e   
 
 t r a n s f o r m e d   t o   p h y s i c a l   m o d e l s   u s i n g   t h e   l o g i c a l 2 p h y s i c a l   t r a n s f o r m   
 
 b e f o r e   t h e y   c a n   b e   u s e d   t o   e i t h e r   d e s c r i b e   d a t a   o r   a s   t h e   b a s i s   o f   c o d e   
 
 g e n e r a t i o n .   T h e   l o g i c a l 2 p h y s i c a l . x s l t   t r a n s f o r m a t i o n   i m p l e m e n t s   J o h n   
 
 C a r t m e l l ' s   a l g o r i t h m     t h a t   r e f i n e s   t h e   C h e n   a l g o r i t h m   b y   t a k i n g   a c c o u n t   o f   
 
 c o m m u t a t i v e   d i a g r a m s   t o   g e n e r a t e   p h y s i c a l   m o d e l s   i n   t h i r d   n o r m a l   f o r m .   I t   
 
 c a n   b e   u s e d   t o   g e n e r a t e   h i e r a r c h i c a l   m o d e l s   s u i t a b l e   f o r   r e p r e s e n t a t i o n   i n   
 
 X M L   o r   t a b u l a r   m o d e l s   s u i t a b l e   f o r   a   r e l a t i o n a l   d a t a b a s e . 
 
 
 
   
 
 I n   a   M i c r o s o f t   W i n d o w s   e n v i r o n m e n t   t h e   s c r i p t   b u i l d _ e x a m p l e s   c a n   b e   u s e d   
 
 t o   g e n e r a t e   b o t h   h i e r a r c h i c a l   a n d   r e l a t i o n a l   m o d e l s   a n d   a s s o c i a t e d   s v g   
 
 d i a g r a m s   f o r   a l l   m o d e l s   i n   t h e   s r c   f o l d e r .   T h i s   s c r i p t   u s e s   a l l   t h e   
 
 f o l l o w i n g   s c r i p t s   w h i c h   c a n   a l s o   b e   u s e d   i n d i v i d u a l l y : 
 
 
 
     E R S c r i p t _ r 3 \ E R m o d e l _ v 1 . 4 \ s c r i p t s \ g e n S v g   c a n   b e   u s e d   t o   g e n e r a t e   o r   
 
     r e g e n e r a t e   a   d i a g r a m   x x x x . s v g   i n   t h e   d o c s   s u b f o l d e r   f r o m   t h e   E R m o d e l   
 
     s o u r c e   x x x x . x m l . 
 
 
 
     E R S c r i p t _ r 3 \ E R m o d e l _ v 1 . 4 \ s c r i p t s \ g e n A l l S v g   m a y   b e   u s e d   t o   g e n e r a t e   a l l   
 
     s u c h   d i a g r a m s   i n   a   s i n g l e   c o m m a n d . 
 
 
 
     E R S c r i p t _ r 3 \ E R m o d e l _ v 1 . 4 \ s c r i p t s \ g e n H i e r a r c h i c a l   c a n   b e   u s e d   t o   g e n e r a t e   o r   
 
     r e g e n e r a t e   a   h i e r a r c h i c a l   p h y s i c a l   d a t a   m o d e l     x x x x . h i e r a r c h i c a l . x m l   i n   
 
     t h e   t e m p   s u b f o l d e r   f r o m   a   l o g i a l   E R m o d e l   s o u r c e   x x x x . x m l .   
 
 
 
     E R S c r i p t _ r 3 \ E R m o d e l _ v 1 . 4 \ s c r i p t s \ g e n R e l a t i o n a l   c a n   b e   u s e d   t o   g e n e r a t e   o r   
 
     r e g e n e r a t e   a   r e l a t i o n a l   p h y s i c a l   d a t a   m o d e l     x x x x . r e l a t i o n a l . x m l   i n   t h e   
 
     t e m p   s u b f o l d e r   f r o m   a   l o g i a l   E R m o d e l   s o u r c e   x x x x . x m l . 
 
 
 
     T h e s e   l a s t   t w o   s c r i p t s   a l s o   p r o d u c e   d i a g r a m s   o f   t h e   r e s u l t i n g   d a t a   m o d e l s   
 
     i n   t h e   d o c s   s u b f o l d e r . 
 
 
 
     T h e   s c r i p t   E R S c r i p t _ r 3 \ E R m o d e l _ v 1 . 4 \ s c r i p t s \ g e n A l l P h y s i c a l   c a n   b e   u s e d   t o   
 
     g e n e r a t e   b o t h   p h y s i c a l   a n d   r e l a t i o n a l   d a t a   m o d e l s   a n d   a s s o c i a t e d   s v g   
 
     d i a g r a m s   f o r   a l l   m o d e l s   i n   t h e   s r c   f o l d e r .   
 
 
 
   
 
 
 
 