Note that there are some explanatory texts on larger screens.

plurals
  1. POjooq schema not beeing added to my SQL
    primarykey
    data
    text
    <p>I am trying to use jooq as a SQL generator only, but I cannot seem to get the Schema information to be added to my query:</p> <pre><code>private String getOtmUserReportSql() { Settings settings = new Settings().withRenderMapping( new RenderMapping().withDefaultSchema(Constants.REP)); DSLContext create = DSL.using((Connection) null,SQLDialect.ORACLE,settings); String sql = create. select( DSL.fieldByName("User Id").as("User_ID"), DSL.fieldByName("User_Name").as("Full_Name"), DSL.fieldByName("Active Status").as("Active_Status"), DSL.fieldByName("Email").as("Email"), DSL.fieldByName("Last Login Time").as("Last_Login_Time"), DSL.fieldByName("Role").as("Role6"), DSL.fieldByName("ID_ROLE").as("Role_Id"), .from(DSL.tableByName(REP)).getSQL(); LOGGER.info("Generated SQL : {}",sql); return sql; } </code></pre> <p>the SQL generated is: 2013-08-12 17:52:12,008 [INFO] [main] c.j.i.x.c.i.SimpleJDBCReportService[67] : Generated SQL : select "User Id" "User_ID", "User_Name" "Full_Name", "Active Status" "Active_Status", "Email" "Email", "Last Login Time" "Last_Login_Time", "Role" "Role6", "ID_ROLE" "Role_Id", "Business Group" "Business_Group", "Menu Template" "Menu_Template" from "REP"</p> <p>according to the documentation present on <a href="http://www.jooq.org/doc/2.5/manual-single-page/#runtime-schema-mapping" rel="nofollow">http://www.jooq.org/doc/2.5/manual-single-page/#runtime-schema-mapping</a> i should see something like: MySchema."User Id" ... MySchema.REP</p> <p>I am using version 3.1, any assistance is greatly appreciated</p> <p>Thanks,</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload