Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331988

Summary: Add an option to format the generated SQL
Product: z_Archived Reporter: Karsten Wutzke <kwutzke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://www.eclipse.org/forums/index.php?t=msg&th=201419
Whiteboard:

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