From Topic 122 ...
I have a very simple object that I have annotated and am building a query with. I am getting an exception that looks like a bug as Postgres needs the AS keyword when aliasing a column. Am I missing some configuration setting?
The code is I use is:
EbeanServer server = Ebean.getServer(null);
Query trackQuery = server.createQuery(Track.class);
iterator = trackQuery.findList().iterator();
And the exception is:
javax.persistence.PersistenceException: Query threw SQLException:ERROR: syntax error at or near "c0" Query was:
select t.id c0, t.name c1, t.gid c2, t.length c3, t.artist c4
from track t