this is my problem...
I came from JBoss5 where I could set the values of the hibernate properties (hibernate.show_sql, hibernate.format_sql, hibernate.use_sql_comments, ...
) at a given persistence.xml, using JBoss Property Syntax and configuring those values as system properties...
For those who are wondering what is "JBoss Property Syntax" is a syntax very similar to ANT properties... Example:
value ="${propKey[:defaultValue]}" (defaultValue is a literal value and it is optional)
So, in my persistence.xml files, i have something like this:
<properties>
...
<property name="hibernate.show_sql" value="${xxx.hibernate.show_sql:false}" />
</properties>
This way, if I want to turn on that property, I just need to define a system property xxx.hibernate.show_sql=true and start the Server...
This schema is not working in wildfly9...
After searching in SO (similar question) and checking the Wildfly standalone.xml, i prove that this functionality is still available at widfly9... However, for the persistence.xml, i can't define default values...
If i define the property value as: ${xxx.hibernate.show_sql}
it works; otherwise, it doesn't.
So, How Can I define default values??
Thanks!