Hi.
I took a look at that page:
http://www.jooq.org/doc/3.5/manual/sql-execution/crud-with-updatablerecords/simple-crud/
I read:
// Create a new record
BookRecord book1 = create.newRecord(BOOK);
// Insert the record: INSERT INTO BOOK (TITLE) VALUES ('1984');
book1.setTitle("1984");
book1.store();
I generated a sample code, have that code:
import static com.example.Tables.TEST;
...
DSLContext create = DSL.using(conn, SQLDialect.POSTGRES);
TestRecord test = create.newRecord(TEST);
At that point, the test variable does not provides a store() method.
I don't understand why.
Using
create.executeInsert(back);
works.
But I'd prefer the store() way, and I see no reason for it not to be there.
My code generation does nothing strange, here is the extract of the maven
configuration:
<configuration>
<!-- JDBC connection parameters -->
<jdbc>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://...</url>
<user>...</user>
<password>...</password>
</jdbc>
<!-- Generator parameters -->
<generator>
<name>org.jooq.util.DefaultGenerator</name>
<database>
<name>org.jooq.util.postgres.PostgresDatabase</name>
<includes>.*</includes>
<excludes></excludes>
<inputSchema>public</inputSchema>
</database>
<target>
<packageName>...</packageName>
<directory>target/generated-sources/jooq</directory>
</target>
<generate>
<daos>true</daos>
</generate>
</generator>
</configuration>
Did I misunderstood something?
Adrien
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.