Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331988 - Add an option to format the generated SQL
Summary: Add an option to format the generated SQL
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://www.eclipse.org/forums/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 04:29 EST by Karsten Wutzke CLA
Modified: 2022-06-09 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Wutzke CLA 2010-12-07 04:29:02 EST
I found the settings

      <property name="eclipselink.logging.level" value="INFO" />
      <property name="eclipselink.logging.level.sql" value="FINE" />

to configure the EclipseLink logger individually, which is very nice. However, the generated SQL that is sent to the DB is unformatted - pretty unreadable.

Hibernate uses

      <property name="hibernate.format_sql" value="true" />

for that purpose and it's quite nice.

Please add an option and functionality to format the generated SQL, like

      <property name="eclipselink.logging.format.sql" value="TRUE" />
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:28:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink