mysema/querydsl — Issue #55: New NamingStrategy for Querydsl SQL
Author: timowest
Created: 2011-11-22 19:43:07+00:00
State: open
Labels: idea

A new NamingStrategy based on the default naming strategy with improved FK name generation.

The naming on db level would be fk__

e.g.

tables user and company
user has fk_company_users foreign key to referencing company via company_id

generated fk names in meta model are

class User { company: Fk }
class Company { users: InvFK }

other examples

Order / Row : fk_order_rows
Category / Events : fk_category_events