Ignore:
Timestamp:
09/12/11 15:54:50 (8 years ago)
Author:
mnagni
Message:

At first run MOLES3 Editor uses correctly all the python classes and SQLAlchemy tables generated by this code. That's good!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/xmi2sqlalchemy/trunk/src/main/java/ndg/services/newmoon/velocity/python/support/Relationship.java

    r7996 r8013  
    4545        private RELATION_TYPE relationType = null; 
    4646        private String backrefName = null; 
     47        //If true indicates that even if the relationType is MANY-to-MANY 
     48        //the relation is a ONE-to-ONE relation. 
     49        private final boolean doNotUseList; 
    4750         
    4851        /** 
     
    5255         * @param nullable 
    5356         */ 
    54         public Relationship(TableModel fromTable, TableModel toTable, String name, boolean nullable) { 
     57        public Relationship(TableModel fromTable, TableModel toTable, String name, boolean nullable, boolean doNotUseList) { 
    5558                super(); 
    5659                this.fromTable = fromTable;              
     
    5861                this.name = name; 
    5962                this.nullable = nullable; 
     63                this.doNotUseList = doNotUseList;                
    6064        } 
    6165         
     66        /** 
     67         * @return the doNotUseList 
     68         */ 
     69        public boolean isDoNotUseList() { 
     70                return doNotUseList; 
     71        } 
     72 
     73 
     74 
    6275        public boolean isManyToMany() { 
    6376                return checkRelationType(RELATION_TYPE.MANY_TO_MANY); 
     
    116129        } 
    117130         
    118         public void setRelationType(RELATION_TYPE relationType) { 
    119                 this.relationType = relationType; 
     131        public void setRelationType(RELATION_TYPE relationType) {  
     132                        this.relationType = relationType; 
    120133        } 
    121134 
Note: See TracChangeset for help on using the changeset viewer.