yaml « playframework « Java Enterprise Q&A





1. Any YAML based fixture loader for Java?    stackoverflow.com

I've used DbUnit but after playing about with the Play Framework recently I've found it's Fixtures.load(String yamlFilename) really useful. Anyone know of a similar tool ...

2. How do I load a (static nested) enum value from YAML fixtures in the Play Framework?    stackoverflow.com

public class Request extends Model {
    public static enum Category {
        First, Second, Third
    }
    ...

3. How to define a Map in a YAML file in the Play! framework?    stackoverflow.com

I'm using the Play! framework and I have a model (an Entity) that has a variable of type Map. To make some tests, I load a YAML file every time I start ...

4. Import Array with YAML in Play Framework    stackoverflow.com

I want to import data with YAML. I have a model named Question

package models;

import java.util.*;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.data.validation.*;
import play.db.jpa.Model;

@Entity
public class Question extends Model{

    @Required
    public ...

5. play framework - how can I make play accept "null" values in yaml files?    stackoverflow.com

I am trying to load data from a YAML file where some fields contain "null" values. Play Framework throws the following exception when it tries to parse a "null" value:

"play.exceptions.YAMLException: ...

6. Play! Framework loading yaml from test sub package    stackoverflow.com

I have a yaml file loaded by BasicTest.java in the test package, this creates the db data as expected in the h2 in memory db. When I move the BasicTest.java ...

7. How to load picture in YAML file    stackoverflow.com


How is it possible to load picture with YAML file? With this model :


    @Entity 
    public class User extends Model { 
  ...