/*
 * Copyright 2014 Codenvy, S.A.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codenvy.ide.ext.datasource.shared;

import com.codenvy.dto.shared.DTO;

@DTO
public interface DatabaseMetadataEntityDTO {

    /**
     * Returns the (human readable) name of the object.
     * 
     * @return the name of the object.
     */
    String getName();

    /**
     * Affects the (human readable) name of the object.
     * 
     * @param name the new value
     */
    void setName(String name);

    /**
     * Returns an identifier for the object relative to the database.
     * 
     * @return the identifier
     */
    String getLookupKey();

    /**
     * Affect the identifier for the object in the database.
     * 
     * @param lookupKey the new value
     */
    void setLookupKey(String lookupKey);

    DatabaseMetadataEntityDTO withName(String name);

    DatabaseMetadataEntityDTO withLookupKey(String lookupKey);

    /**
     * Returns the comment for the database entity (if available).
     * 
     * @return the comment
     */
    String getComment();

    /**
     * Affect the comment for the database entity.
     * 
     * @param comment the new value
     */
    void setComment(String comment);

    /**
     * Chainable version of the comment property setter.
     * 
     * @param comment the value for comment
     * @return this object
     */
    DatabaseMetadataEntityDTO withComment(String comment);
}

@@ -675,16 +675,100 @@
 d.DTO;%0A%0A
+/**%0A * Interface for all database entity info.%0A * %0A * @author %22Micka%C3%ABl Leduque%22%0A */%0A
 @DTO%0Apub
@@ -1093,24 +1093,222 @@
 ing name);%0A%0A
+%0A    /**%0A     * Chainable version of the name property setter.%0A     * %0A     * @param name the value for name%0A     * @return this object%0A     */%0A    DatabaseMetadataEntityDTO withName(String name);%0A%0A
     /**%0A    
@@ -1616,61 +1616,166 @@
 );%0A%0A
+%0A
     
-DatabaseMetadataEntityDTO withName(String name);%0A
+/**%0A     * Chainable version of the lookupKey property setter.%0A     * %0A     * @param lookupKey the value for lookupKey%0A     * @return this object%0A     */
 %0A   

Add missing javadoc and group methods for the same property