// Path: src/main/java/org/cri/redmetrics/model/GameVersion.java
// @Data
// @DatabaseTable(tableName = "game_versions")
// @NoArgsConstructor
// @AllArgsConstructor
// @EqualsAndHashCode(callSuper = true)
// public class GameVersion extends Entity {
// 
//     @DatabaseField(
//             canBeNull = false,
//             foreign = true,
//             columnDefinition = "VARCHAR, FOREIGN KEY (game_id) REFERENCES games(id)")
//     private Game game;
// 
//     @DatabaseField(canBeNull = false)
//     private String name;
// 
//     @DatabaseField
//     private String author;
// 
//     @DatabaseField
//     private String description;
// 
// }


import au.com.bytecode.opencsv.CSVWriter;
import org.cri.redmetrics.model.GameVersion;
import java.util.List;
package org.cri.redmetrics.csv;



/**
 * Created by himmelattack on 12/02/15.
 */
public class GameVersionCsvEntityConverter implements CsvEntityConverter<GameVersion> {


    @Override
    public void write(CSVWriter csvWriter, List<GameVersion> models) {
// Path: src/main/java/org/cri/redmetrics/model/GameVersion.java
// @Data
// @DatabaseTable(tableName = "game_versions")
// @NoArgsConstructor
// @AllArgsConstructor
// @EqualsAndHashCode(callSuper = true)
// public class GameVersion extends Entity {
// 
//     @DatabaseField(
//             canBeNull = false,
//             foreign = true,
//             columnDefinition = "VARCHAR, FOREIGN KEY (game_id) REFERENCES games(id)")
//     private Game game;
// 
//     @DatabaseField(canBeNull = false)
//     private String name;
// 
//     @DatabaseField
//     private String author;
// 
//     @DatabaseField
//     private String description;
// 
// }


// Path: src/main/java/org/cri/redmetrics/csv/GameVersionCsvEntityConverter.java
import au.com.bytecode.opencsv.CSVWriter;
import org.cri.redmetrics.model.GameVersion;
import java.util.List;

package org.cri.redmetrics.csv;



/**
 * Created by himmelattack on 12/02/15.
 */
public class GameVersionCsvEntityConverter implements CsvEntityConverter<GameVersion> {


    @Override
    public void write(CSVWriter csvWriter, List<GameVersion> models) {
        csvWriter.writeNext(new String[]{ "id", "name", "description", "customData" });