I have an existing database schema managed by another webapp. The playframework I am creating needs to read/write to this existing schema but it's deleting and recreating the tables when play starts up.
How do I turn off the table creation?
update:
- play 1.2.5
- mysql
update2:
@Entity(name="mytable_name")
public class Sample extends Model {
public Integer some_value;
public String fullname;
}
inside a Controller method...
List<Sample> list = Sample.findAll();
The table exists with data, I run "play test", hit the controller method that calls findAll, and the table is dropped, recreated, and now empty.
The schemas do not match perfectly in data types with text fields being different sizes. I was expecting query errors but not this.