-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: import.sql difficult to use as its not multi-line.
PostPosted: Sat Jun 22, 2013 11:37 pm 
Newbie

Joined: Tue Feb 07, 2012 12:12 pm
Posts: 7
Feature Request

It would be lovely to have the ability to have "multi-line capability) for import.sql.
e.g.

-- Add XXXxxx for [ZZZ] at [ccc]
insert into XXXX (id, version4OptLock, name, address_id, ...) values
(/* ID */ 0,
/* version4OptLock */ 0,
/* xxx */ xxx,
/* xxx */ xxx,
/* xxx */ xxx,
/* xxx */ xxx,
/* xxx */ xxx,
/* xxx */ xxx,
/* creation_date */ '2013-07-01 00:00:01',
/* date_effective_from */ '2013-07-01 00:00:01',
/* date_effective_to */ NULL);

Currently import.sql is limited to single lines in the file making it incredibly unreadable.

Also, impot.sql still doesn't seem to 'set the clock" for Id's when you use import.sql
https://forum.hibernate.org/viewtopic.php?p=2452806


Top
 Profile  
 
 Post subject: Re: import.sql difficult to use as its not multi-line.
PostPosted: Tue Jun 10, 2014 3:10 am 
Newbie

Joined: Tue Feb 07, 2012 12:12 pm
Posts: 7
Finally...

http://stackoverflow.com/questions/4674828/how-to-break-expression-into-more-lines-in-hibernates-import-sql

<property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" />


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.