package models;
import java.util.Date;
import play.data.binding.As;
import siena.Column;
import siena.DateTime;
import siena.Filter;
import siena.Generator;
import siena.Id;
import siena.Index;
import siena.Max;
import siena.Model;
import siena.NotNull;
import siena.Query;
import siena.Table;
@Table("employees")
public class Employee extends Model {
@Id(Generator.AUTO_INCREMENT)
public Long id;
@Column("first_name")
@Max(100) @NotNull
public String firstName;
public Date firstDate;
@Column("boss")
@Index("boss_index")
public Employee boss;
@Filter("boss")
public Query<Employee> employees;
public String toString() {
return firstName;
}
}
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/NR38LV1tpegJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
require:
- play -> play [1.2.4,)
- play -> gae [1.6.0,)
- play -> crudsiena [2.0.2,)
- play -> siena [2.0.7,)
This is what comes out in the console on loading:
Listening for transport dt_socket at address: 8000
17:08:40,161 INFO ~ Starting /Users/X/Workspaces/play/play1
17:08:40,302 INFO ~ Module crudsiena is available (/Users/X/Development/play-1.2.4/modules/crudsiena-2.0.2)
17:08:40,303 INFO ~ Module gae is available (/Users/X/Development/play-1.2.4/modules/gae-1.6.0)
17:08:40,304 INFO ~ Module siena is available (/Users/X/Development/play-1.2.4/modules/siena-2.0.7)
17:08:42,126 WARN ~
17:08:42,126 WARN ~ Google App Engine module
17:08:42,126 WARN ~ ~~~~~~~~~~~~~~~~~~~~~~~
17:08:42,126 WARN ~ No Google App Engine environment found. Setting up a development environement
17:08:42,532 WARN ~ Don't forget to define your GAE application id in the 'war/WEB-INF/appengine-web.xml' file
17:08:42,532 WARN ~
17:08:42,532 WARN ~ You're running Play! in DEV mode
17:08:42,830 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
17:09:02,976 INFO ~ GAE environment detected
17:09:03,945 INFO ~ Application 'play1' is now started !
17:09:30,235 INFO ~ Local Datastore initialized:
Type: Master/Slave
Storage: /Users/moe/Workspaces/play/play1/tmp/datastore
17:09:30,484 INFO ~ Time to load datastore: 249 ms
17:09:31,058 INFO ~ GAE environment detected
17:09:37,098 INFO ~ GAE environment detected
could you please remove
module.gae=${play.path}/modules/gae-1.6.0
# ---- Siena module ----
module.siena=${play.path}/modules/siena-2.0.7
# -- Siena CRUD Module ----
module.crudsiena=${play.path}/modules/crudsiena-2.0.2
and put the dependencies in the dependencies.yml ?
On Thu, Mar 15, 2012 at 3:58 PM, Mahamad El Tanahy
Yeah I just checked that, it works fine on there.
> > > >> play-framework@googlegroups.com.
> > > >> > > > To unsubscribe from this group, send email to
> > > >> > > > play-framework+unsubscribe@googlegroups.com.
> > > >> > > > For more options, visit this group at
> > > >> > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google
> > Groups
> > > >> "play-framework" group.
> > > >> To post to this group, send email to play-framework@googlegroups.com.
> > > >> To unsubscribe from this group, send email to
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/play-framework?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "play-framework" group.
> > To post to this group, send email to play-framework@googlegroups.com.
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> >http://groups.google.com/group/play-framework?hl=en.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/HMqPVK2mr8kJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/D4xjf37-uS4J.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
https://github.com/mandubian/play-crud-siena/tree/master/samples-and-tests/crudsienatest
Here you can find this sample app!
If you could try this app with the same versions of modules as yours.
Pascal
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/1OrcpZa7SgIJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
I just pushed a patch for this problem (linked to a modification in binding prefixes in play1.2.4).
I can't deliver modules right now because there is a problem on Module site right now (play team is aware about it). So if you want to test, please checkout the code.
regards
Pascal
On Thu, Mar 15, 2012 at 8:47 PM, Mahamad El Tanarote:
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/DwjaLuWck7oJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
Hi,
Don't use play 1.2.1, it's quite old with some bugs and security issues.
I''ve built the module and uploaded it there:
https://github.com/downloads/mandubian/play-crud-siena/play-crud-siena-2.0.3.zip
You can put it in your PLAY_PATH/modules and try to run "play deps" from your app.
regards
Pascal
On Fri, Mar 16, 2012 at 10:20 PM, Mahamad El Tanahy
Hi Pascal,
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/hRsWPu2R608J.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
I'm not a star, you're just lucky I had a few minutes to help you ;););)