package ubic.gemma.model;

import ubic.gemma.model.expression.designElement.CompositeSequence;

public class CompositeSequenceValueObject {
    private Long id;
    private String name;
    private String description;

    public Long getId() {
        return id;
    }

    public void setId( Long id ) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName( String name ) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription( String description ) {
        this.description = description;
    }

    public static CompositeSequenceValueObject fromEntity( CompositeSequence cs ) {
        CompositeSequenceValueObject vo = new CompositeSequenceValueObject();
        vo.setDescription( cs.getDescription() );
        vo.setId( cs.getId() );
        vo.setName( cs.getName() );
        return vo;
    }

}

@@ -1,8 +1,641 @@
+/*%0A * The Gemma project%0A * %0A * Copyright (c) 2012 University of British Columbia%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except in compliance with%0A * the License. You may obtain a copy of the License at%0A * %0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on%0A * an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the%0A * specific language governing permissions and limitations under the License.%0A */%0A
 package 
@@ -722,16 +722,58 @@
 uence;%0A%0A
+/**%0A * @author anton%0A * @version $Id$%0A */%0A
 public c
@@ -885,16 +885,230 @@
 ription;
+%0A    private Long arrayDesignId;%0A%0A    public Long getArrayDesignId() %7B%0A        return arrayDesignId;%0A    %7D%0A%0A    public void setArrayDesignId( Long arrayDesignId ) %7B%0A        this.arrayDesignId = arrayDesignId;%0A    %7D
 %0A%0A    pu
@@ -1763,24 +1763,24 @@
 .getId() );%0A
-
         vo.s
@@ -1799,24 +1799,84 @@
 etName() );%0A
+        vo.setArrayDesignId( cs.getArrayDesign().getId() );%0A
         retu

add the array design id.