/** * Creates a new foo with the primary key. Does not add the foo to the database. * * @param fooId the primary key for the new foo * @return the new foo */ @Override public Foo create(long fooId) { Foo foo = new FooImpl(); foo.setNew(true); foo.setPrimaryKey(fooId); return foo; }