/
CoreMessageLogger.java
1669 lines (1295 loc) · 63 KB
/
CoreMessageLogger.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2007-2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
package org.hibernate.internal;
import static org.jboss.logging.Logger.Level.DEBUG;
import static org.jboss.logging.Logger.Level.ERROR;
import static org.jboss.logging.Logger.Level.INFO;
import static org.jboss.logging.Logger.Level.WARN;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URL;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Set;
import javax.naming.NameNotFoundException;
import javax.naming.NamingException;
import javax.transaction.Synchronization;
import javax.transaction.SystemException;
import org.hibernate.HibernateException;
import org.hibernate.LockMode;
import org.hibernate.cache.CacheException;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.dialect.spi.DialectResolver;
import org.hibernate.engine.jndi.JndiException;
import org.hibernate.engine.jndi.JndiNameException;
import org.hibernate.engine.loading.internal.CollectionLoadContext;
import org.hibernate.engine.loading.internal.EntityLoadContext;
import org.hibernate.engine.spi.CollectionKey;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.id.IntegralDataTypeHolder;
import org.hibernate.service.Service;
import org.hibernate.type.BasicType;
import org.hibernate.type.SerializationException;
import org.hibernate.type.Type;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
/**
* The jboss-logging {@link MessageLogger} for the hibernate-core module. It reserves message ids ranging from
* 00001 to 10000 inclusively.
* <p/>
* New messages must be added after the last message defined to ensure message codes are unique.
*/
@MessageLogger(projectCode = "HHH")
public interface CoreMessageLogger extends BasicLogger {
@LogMessage(level = WARN)
@Message(value = "Already session bound on call to bind(); make sure you clean up your sessions!", id = 2)
void alreadySessionBound();
@LogMessage(level = INFO)
@Message(value = "Autocommit mode: %s", id = 6)
void autoCommitMode(boolean autocommit);
@LogMessage(level = WARN)
@Message(value = "JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()",
id = 8)
void autoFlushWillNotWork();
@LogMessage(level = INFO)
@Message(value = "On release of batch it still contained JDBC statements", id = 10)
void batchContainedStatementsOnRelease();
@LogMessage(level = INFO)
@Message(value = "Bytecode provider name : %s", id = 21)
void bytecodeProvider(String provider);
@LogMessage(level = WARN)
@Message(value = "c3p0 properties were encountered, but the %s provider class was not found on the classpath; these properties are going to be ignored.",
id = 22)
void c3p0ProviderClassNotFound(String c3p0ProviderClassName);
@LogMessage(level = WARN)
@Message(value = "I/O reported cached file could not be found : %s : %s", id = 23)
void cachedFileNotFound(String path,
FileNotFoundException error);
@LogMessage(level = INFO)
@Message(value = "Cache provider: %s", id = 24)
void cacheProvider(String name);
@LogMessage(level = WARN)
@Message(value = "Calling joinTransaction() on a non JTA EntityManager", id = 27)
void callingJoinTransactionOnNonJtaEntityManager();
@LogMessage(level = INFO)
@Message(value = "Cleaning up connection pool [%s]", id = 30)
void cleaningUpConnectionPool(String url);
@LogMessage(level = DEBUG)
@Message(value = "Closing", id = 31)
void closing();
@LogMessage(level = INFO)
@Message(value = "Collections fetched (minimize this): %s", id = 32)
void collectionsFetched(long collectionFetchCount);
@LogMessage(level = INFO)
@Message(value = "Collections loaded: %s", id = 33)
void collectionsLoaded(long collectionLoadCount);
@LogMessage(level = INFO)
@Message(value = "Collections recreated: %s", id = 34)
void collectionsRecreated(long collectionRecreateCount);
@LogMessage(level = INFO)
@Message(value = "Collections removed: %s", id = 35)
void collectionsRemoved(long collectionRemoveCount);
@LogMessage(level = INFO)
@Message(value = "Collections updated: %s", id = 36)
void collectionsUpdated(long collectionUpdateCount);
@LogMessage(level = INFO)
@Message(value = "Columns: %s", id = 37)
void columns(Set keySet);
@LogMessage(level = WARN)
@Message(value = "Composite-id class does not override equals(): %s", id = 38)
void compositeIdClassDoesNotOverrideEquals(String name);
@LogMessage(level = WARN)
@Message(value = "Composite-id class does not override hashCode(): %s", id = 39)
void compositeIdClassDoesNotOverrideHashCode(String name);
@LogMessage(level = INFO)
@Message(value = "Configuration resource: %s", id = 40)
void configurationResource(String resource);
@LogMessage(level = INFO)
@Message(value = "Configured SessionFactory: %s", id = 41)
void configuredSessionFactory(String name);
@LogMessage(level = INFO)
@Message(value = "Configuring from file: %s", id = 42)
void configuringFromFile(String file);
@LogMessage(level = INFO)
@Message(value = "Configuring from resource: %s", id = 43)
void configuringFromResource(String resource);
@LogMessage(level = INFO)
@Message(value = "Configuring from URL: %s", id = 44)
void configuringFromUrl(URL url);
@LogMessage(level = INFO)
@Message(value = "Configuring from XML document", id = 45)
void configuringFromXmlDocument();
@LogMessage(level = INFO)
@Message(value = "Connection properties: %s", id = 46)
void connectionProperties(Properties connectionProps);
@LogMessage(level = INFO)
@Message(value = "Connections obtained: %s", id = 48)
void connectionsObtained(long connectCount);
@LogMessage(level = ERROR)
@Message(value = "Container is providing a null PersistenceUnitRootUrl: discovery impossible", id = 50)
void containerProvidingNullPersistenceUnitRootUrl();
@LogMessage(level = WARN)
@Message(value = "Ignoring bag join fetch [%s] due to prior collection join fetch", id = 51)
void containsJoinFetchedCollection(String role);
@LogMessage(level = INFO)
@Message(value = "Creating subcontext: %s", id = 53)
void creatingSubcontextInfo(String intermediateContextName);
@LogMessage(level = WARN)
@Message(value = "Defining %s=true ignored in HEM", id = 59)
void definingFlushBeforeCompletionIgnoredInHem(String flushBeforeCompletion);
@LogMessage(level = WARN)
@Message(value = "@ForceDiscriminator is deprecated use @DiscriminatorOptions instead.", id = 62)
void deprecatedForceDescriminatorAnnotation();
@LogMessage(level = WARN)
@Message(value = "The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead",
id = 63)
void deprecatedOracle9Dialect();
@LogMessage(level = WARN)
@Message(value = "The OracleDialect dialect has been deprecated; use Oracle8iDialect instead", id = 64)
void deprecatedOracleDialect();
@LogMessage(level = WARN)
@Message(value = "DEPRECATED : use [%s] instead with custom [%s] implementation", id = 65)
void deprecatedUuidGenerator(String name,
String name2);
@LogMessage(level = INFO)
@Message(value = "Disallowing insert statement comment for select-identity due to Oracle driver bug", id = 67)
void disallowingInsertStatementComment();
@LogMessage(level = WARN)
@Message(value = "Duplicate generator name %s", id = 69)
void duplicateGeneratorName(String name);
@LogMessage(level = WARN)
@Message(value = "Duplicate generator table: %s", id = 70)
void duplicateGeneratorTable(String name);
@LogMessage(level = INFO)
@Message(value = "Duplicate import: %s -> %s", id = 71)
void duplicateImport(String entityName,
String rename);
@LogMessage(level = WARN)
@Message(value = "Duplicate joins for class: %s", id = 72)
void duplicateJoins(String entityName);
@LogMessage(level = INFO)
@Message(value = "entity-listener duplication, first event definition will be used: %s", id = 73)
void duplicateListener(String className);
@LogMessage(level = WARN)
@Message(value = "Found more than one <persistence-unit-metadata>, subsequent ignored", id = 74)
void duplicateMetadata();
@LogMessage(level = INFO)
@Message(value = "Entities deleted: %s", id = 76)
void entitiesDeleted(long entityDeleteCount);
@LogMessage(level = INFO)
@Message(value = "Entities fetched (minimize this): %s", id = 77)
void entitiesFetched(long entityFetchCount);
@LogMessage(level = INFO)
@Message(value = "Entities inserted: %s", id = 78)
void entitiesInserted(long entityInsertCount);
@LogMessage(level = INFO)
@Message(value = "Entities loaded: %s", id = 79)
void entitiesLoaded(long entityLoadCount);
@LogMessage(level = INFO)
@Message(value = "Entities updated: %s", id = 80)
void entitiesUpdated(long entityUpdateCount);
@LogMessage(level = WARN)
@Message(value = "@org.hibernate.annotations.Entity used on a non root entity: ignored for %s", id = 81)
void entityAnnotationOnNonRoot(String className);
@LogMessage(level = WARN)
@Message(value = "Entity Manager closed by someone else (%s must not be used)", id = 82)
void entityManagerClosedBySomeoneElse(String autoCloseSession);
@LogMessage(level = WARN)
@Message(value = "Entity [%s] is abstract-class/interface explicitly mapped as non-abstract; be sure to supply entity-names",
id = 84)
void entityMappedAsNonAbstract(String name);
@LogMessage(level = INFO)
@Message(value = "%s %s found", id = 85)
void exceptionHeaderFound(String exceptionHeader,
String metaInfOrmXml);
@LogMessage(level = INFO)
@Message(value = "%s No %s found", id = 86)
void exceptionHeaderNotFound(String exceptionHeader,
String metaInfOrmXml);
@LogMessage(level = ERROR)
@Message(value = "Exception in interceptor afterTransactionCompletion()", id = 87)
void exceptionInAfterTransactionCompletionInterceptor(@Cause Throwable e);
@LogMessage(level = ERROR)
@Message(value = "Exception in interceptor beforeTransactionCompletion()", id = 88)
void exceptionInBeforeTransactionCompletionInterceptor(@Cause Throwable e);
@LogMessage(level = INFO)
@Message(value = "Sub-resolver threw unexpected exception, continuing to next : %s", id = 89)
void exceptionInSubResolver(String message);
@LogMessage(level = ERROR)
@Message(value = "Expected type: %s, actual value: %s", id = 91)
void expectedType(String name,
String string);
@LogMessage(level = WARN)
@Message(value = "An item was expired by the cache while it was locked (increase your cache timeout): %s", id = 92)
void expired(Object key);
@LogMessage(level = INFO)
@Message(value = "Bound factory to JNDI name: %s", id = 94)
void factoryBoundToJndiName(String name);
@LogMessage(level = INFO)
@Message(value = "A factory was renamed from [%s] to [%s] in JNDI", id = 96)
void factoryJndiRename(String oldName, String newName);
@LogMessage(level = INFO)
@Message(value = "Unbound factory from JNDI name: %s", id = 97)
void factoryUnboundFromJndiName(String name);
@LogMessage(level = INFO)
@Message(value = "A factory was unbound from name: %s", id = 98)
void factoryUnboundFromName(String name);
@LogMessage(level = ERROR)
@Message(value = "an assertion failure occured" + " (this may indicate a bug in Hibernate, but is more likely due"
+ " to unsafe use of the session): %s", id = 99)
void failed(Throwable throwable);
@LogMessage(level = WARN)
@Message(value = "Fail-safe cleanup (collections) : %s", id = 100)
void failSafeCollectionsCleanup(CollectionLoadContext collectionLoadContext);
@LogMessage(level = WARN)
@Message(value = "Fail-safe cleanup (entities) : %s", id = 101)
void failSafeEntitiesCleanup(EntityLoadContext entityLoadContext);
@LogMessage(level = INFO)
@Message(value = "Fetching database metadata", id = 102)
void fetchingDatabaseMetadata();
@LogMessage(level = WARN)
@Message(value = "firstResult/maxResults specified with collection fetch; applying in memory!", id = 104)
void firstOrMaxResultsSpecifiedWithCollectionFetch();
@LogMessage(level = INFO)
@Message(value = "Flushes: %s", id = 105)
void flushes(long flushCount);
@LogMessage(level = INFO)
@Message(value = "Forcing container resource cleanup on transaction completion", id = 106)
void forcingContainerResourceCleanup();
@LogMessage(level = INFO)
@Message(value = "Forcing table use for sequence-style generator due to pooled optimizer selection where db does not support pooled sequences",
id = 107)
void forcingTableUse();
@LogMessage(level = INFO)
@Message(value = "Foreign keys: %s", id = 108)
void foreignKeys(Set keySet);
@LogMessage(level = INFO)
@Message(value = "Found mapping document in jar: %s", id = 109)
void foundMappingDocument(String name);
@LogMessage(level = ERROR)
@Message(value = "Getters of lazy classes cannot be final: %s.%s", id = 112)
void gettersOfLazyClassesCannotBeFinal(String entityName,
String name);
@LogMessage(level = WARN)
@Message(value = "GUID identifier generated: %s", id = 113)
void guidGenerated(String result);
@LogMessage(level = INFO)
@Message(value = "Handling transient entity in delete processing", id = 114)
void handlingTransientEntity();
@LogMessage(level = INFO)
@Message(value = "Hibernate connection pool size: %s (min=%s)", id = 115)
void hibernateConnectionPoolSize(int poolSize, int minSize);
@LogMessage(level = WARN)
@Message(value = "Config specified explicit optimizer of [%s], but [%s=%s; honoring optimizer setting", id = 116)
void honoringOptimizerSetting(String none,
String incrementParam,
int incrementSize);
@LogMessage(level = DEBUG)
@Message(value = "HQL: %s, time: %sms, rows: %s", id = 117)
void hql(String hql,
Long valueOf,
Long valueOf2);
@LogMessage(level = WARN)
@Message(value = "HSQLDB supports only READ_UNCOMMITTED isolation", id = 118)
void hsqldbSupportsOnlyReadCommittedIsolation();
@LogMessage(level = WARN)
@Message(value = "On EntityLoadContext#clear, hydratingEntities contained [%s] entries", id = 119)
void hydratingEntitiesCount(int size);
@LogMessage(level = WARN)
@Message(value = "Ignoring unique constraints specified on table generator [%s]", id = 120)
void ignoringTableGeneratorConstraints(String name);
@LogMessage(level = INFO)
@Message(value = "Ignoring unrecognized query hint [%s]", id = 121)
void ignoringUnrecognizedQueryHint(String hintName);
@LogMessage(level = ERROR)
@Message(value = "IllegalArgumentException in class: %s, getter method of property: %s", id = 122)
void illegalPropertyGetterArgument(String name,
String propertyName);
@LogMessage(level = ERROR)
@Message(value = "IllegalArgumentException in class: %s, setter method of property: %s", id = 123)
void illegalPropertySetterArgument(String name,
String propertyName);
@LogMessage(level = WARN)
@Message(value = "@Immutable used on a non root entity: ignored for %s", id = 124)
void immutableAnnotationOnNonRoot(String className);
@LogMessage(level = WARN)
@Message(value = "Mapping metadata cache was not completely processed", id = 125)
void incompleteMappingMetadataCacheProcessing();
@LogMessage(level = INFO)
@Message(value = "Indexes: %s", id = 126)
void indexes(Set keySet);
@LogMessage(level = DEBUG)
@Message(value = "Could not bind JNDI listener", id = 127)
void couldNotBindJndiListener();
@LogMessage(level = INFO)
@Message(value = "Instantiating explicit connection provider: %s", id = 130)
void instantiatingExplicitConnectionProvider(String providerClassName);
@LogMessage(level = ERROR)
@Message(value = "Array element type error\n%s", id = 132)
void invalidArrayElementType(String message);
@LogMessage(level = WARN)
@Message(value = "Discriminator column has to be defined in the root entity, it will be ignored in subclass: %s",
id = 133)
void invalidDiscriminatorAnnotation(String className);
@LogMessage(level = ERROR)
@Message(value = "Application attempted to edit read only item: %s", id = 134)
void invalidEditOfReadOnlyItem(Object key);
@LogMessage(level = ERROR)
@Message(value = "Invalid JNDI name: %s", id = 135)
void invalidJndiName(String name,
@Cause JndiNameException e);
@LogMessage(level = WARN)
@Message(value = "Inapropriate use of @OnDelete on entity, annotation ignored: %s", id = 136)
void invalidOnDeleteAnnotation(String entityName);
@LogMessage(level = WARN)
@Message(value = "Root entity should not hold an PrimaryKeyJoinColum(s), will be ignored", id = 137)
void invalidPrimaryKeyJoinColumnAnnotation();
@LogMessage(level = WARN)
@Message(value = "Mixing inheritance strategy in a entity hierarchy is not allowed, ignoring sub strategy in: %s",
id = 138)
void invalidSubStrategy(String className);
@LogMessage(level = WARN)
@Message(value = "Illegal use of @Table in a subclass of a SINGLE_TABLE hierarchy: %s", id = 139)
void invalidTableAnnotation(String className);
@LogMessage(level = INFO)
@Message(value = "JACC contextID: %s", id = 140)
void jaccContextId(String contextId);
@LogMessage(level = INFO)
@Message(value = "java.sql.Types mapped the same code [%s] multiple times; was [%s]; now [%s]", id = 141)
void JavaSqlTypesMappedSameCodeMultipleTimes(int code,
String old,
String name);
@Message(value = "Javassist Enhancement failed: %s", id = 142)
String javassistEnhancementFailed(String entityName);
@LogMessage(level = WARN)
@Message(value = "%s = false breaks the EJB3 specification", id = 144)
void jdbcAutoCommitFalseBreaksEjb3Spec(String autocommit);
@LogMessage(level = WARN)
@Message(value = "No JDBC Driver class was specified by property %s", id = 148)
void jdbcDriverNotSpecified(String driver);
@LogMessage(level = INFO)
@Message(value = "JDBC isolation level: %s", id = 149)
void jdbcIsolationLevel(String isolationLevelToString);
@Message(value = "JDBC rollback failed", id = 151)
String jdbcRollbackFailed();
@Message(value = "JDBC URL was not specified by property %s", id = 152)
String jdbcUrlNotSpecified(String url);
@LogMessage(level = INFO)
@Message(value = "JNDI InitialContext properties:%s", id = 154)
void jndiInitialContextProperties(Hashtable hash);
@LogMessage(level = ERROR)
@Message(value = "JNDI name %s does not handle a session factory reference", id = 155)
void jndiNameDoesNotHandleSessionFactoryReference(String sfJNDIName,
@Cause ClassCastException e);
@LogMessage(level = INFO)
@Message(value = "Lazy property fetching available for: %s", id = 157)
void lazyPropertyFetchingAvailable(String name);
@LogMessage(level = WARN)
@Message(value = "In CollectionLoadContext#endLoadingCollections, localLoadingCollectionKeys contained [%s], but no LoadingCollectionEntry was found in loadContexts",
id = 159)
void loadingCollectionKeyNotFound(CollectionKey collectionKey);
@LogMessage(level = WARN)
@Message(value = "On CollectionLoadContext#cleanup, localLoadingCollectionKeys contained [%s] entries", id = 160)
void localLoadingCollectionKeysCount(int size);
@LogMessage(level = INFO)
@Message(value = "Logging statistics....", id = 161)
void loggingStatistics();
@LogMessage(level = DEBUG)
@Message(value = "*** Logical connection closed ***", id = 162)
void logicalConnectionClosed();
@LogMessage(level = DEBUG)
@Message(value = "Logical connection releasing its physical connection", id = 163)
void logicalConnectionReleasingPhysicalConnection();
@LogMessage(level = INFO)
@Message(value = "Max query time: %sms", id = 173)
void maxQueryTime(long queryExecutionMaxTime);
@LogMessage(level = WARN)
@Message(value = "Function template anticipated %s arguments, but %s arguments encountered", id = 174)
void missingArguments(int anticipatedNumberOfArguments,
int numberOfArguments);
@LogMessage(level = WARN)
@Message(value = "Class annotated @org.hibernate.annotations.Entity but not javax.persistence.Entity (most likely a user error): %s",
id = 175)
void missingEntityAnnotation(String className);
@LogMessage(level = ERROR)
@Message(value = "Error in named query: %s", id = 177)
void namedQueryError(String queryName,
@Cause HibernateException e);
@LogMessage(level = WARN)
@Message(value = "Naming exception occurred accessing factory: %s", id = 178)
void namingExceptionAccessingFactory(NamingException exception);
@LogMessage(level = WARN)
@Message(value = "Narrowing proxy to %s - this operation breaks ==", id = 179)
void narrowingProxy(Class concreteProxyClass);
@LogMessage(level = WARN)
@Message(value = "FirstResult/maxResults specified on polymorphic query; applying in memory!", id = 180)
void needsLimit();
@LogMessage(level = WARN)
@Message(value = "No appropriate connection provider encountered, assuming application will be supplying connections",
id = 181)
void noAppropriateConnectionProvider();
@LogMessage(level = INFO)
@Message(value = "No default (no-argument) constructor for class: %s (class must be instantiated by Interceptor)",
id = 182)
void noDefaultConstructor(String name);
@LogMessage(level = WARN)
@Message(value = "no persistent classes found for query class: %s", id = 183)
void noPersistentClassesFound(String query);
@LogMessage(level = ERROR)
@Message(value = "No session factory with JNDI name %s", id = 184)
void noSessionFactoryWithJndiName(String sfJNDIName,
@Cause NameNotFoundException e);
@LogMessage(level = INFO)
@Message(value = "Optimistic lock failures: %s", id = 187)
void optimisticLockFailures(long optimisticFailureCount);
@LogMessage(level = WARN)
@Message(value = "@OrderBy not allowed for an indexed collection, annotation ignored.", id = 189)
void orderByAnnotationIndexedCollection();
@LogMessage(level = WARN)
@Message(value = "Overriding %s is dangerous, this might break the EJB3 specification implementation", id = 193)
void overridingTransactionStrategyDangerous(String transactionStrategy);
@LogMessage(level = DEBUG)
@Message(value = "Package not found or wo package-info.java: %s", id = 194)
void packageNotFound(String packageName);
// @LogMessage(level = WARN)
// @Message(value = "Parameter position [%s] occurred as both JPA and Hibernate positional parameter", id = 195)
// void parameterPositionOccurredAsBothJpaAndHibernatePositionalParameter(Integer position);
@LogMessage(level = ERROR)
@Message(value = "Error parsing XML (%s) : %s", id = 196)
void parsingXmlError(int lineNumber,
String message);
@LogMessage(level = ERROR)
@Message(value = "Error parsing XML: %s(%s) %s", id = 197)
void parsingXmlErrorForFile(String file,
int lineNumber,
String message);
@LogMessage(level = ERROR)
@Message(value = "Warning parsing XML (%s) : %s", id = 198)
void parsingXmlWarning(int lineNumber,
String message);
@LogMessage(level = WARN)
@Message(value = "Warning parsing XML: %s(%s) %s", id = 199)
void parsingXmlWarningForFile(String file,
int lineNumber,
String message);
@LogMessage(level = WARN)
@Message(value = "Persistence provider caller does not implement the EJB3 spec correctly."
+ "PersistenceUnitInfo.getNewTempClassLoader() is null.", id = 200)
void persistenceProviderCallerDoesNotImplementEjb3SpecCorrectly();
@LogMessage(level = INFO)
@Message(value = "Pooled optimizer source reported [%s] as the initial value; use of 1 or greater highly recommended",
id = 201)
void pooledOptimizerReportedInitialValue(IntegralDataTypeHolder value);
@LogMessage(level = ERROR)
@Message(value = "PreparedStatement was already in the batch, [%s].", id = 202)
void preparedStatementAlreadyInBatch(String sql);
@LogMessage(level = WARN)
@Message(value = "processEqualityExpression() : No expression to process!", id = 203)
void processEqualityExpression();
@LogMessage(level = INFO)
@Message(value = "Processing PersistenceUnitInfo [\n\tname: %s\n\t...]", id = 204)
void processingPersistenceUnitInfoName(String persistenceUnitName);
@LogMessage(level = INFO)
@Message(value = "Loaded properties from resource hibernate.properties: %s", id = 205)
void propertiesLoaded(Properties maskOut);
@LogMessage(level = INFO)
@Message(value = "hibernate.properties not found", id = 206)
void propertiesNotFound();
@LogMessage(level = WARN)
@Message(value = "Property %s not found in class but described in <mapping-file/> (possible typo error)", id = 207)
void propertyNotFound(String property);
@LogMessage(level = WARN)
@Message(value = "%s has been deprecated in favor of %s; that provider will be used instead.", id = 208)
void providerClassDeprecated(String providerClassName,
String actualProviderClassName);
@LogMessage(level = WARN)
@Message(value = "proxool properties were encountered, but the %s provider class was not found on the classpath; these properties are going to be ignored.",
id = 209)
void proxoolProviderClassNotFound(String proxoolProviderClassName);
@LogMessage(level = INFO)
@Message(value = "Queries executed to database: %s", id = 210)
void queriesExecuted(long queryExecutionCount);
@LogMessage(level = INFO)
@Message(value = "Query cache hits: %s", id = 213)
void queryCacheHits(long queryCacheHitCount);
@LogMessage(level = INFO)
@Message(value = "Query cache misses: %s", id = 214)
void queryCacheMisses(long queryCacheMissCount);
@LogMessage(level = INFO)
@Message(value = "Query cache puts: %s", id = 215)
void queryCachePuts(long queryCachePutCount);
@LogMessage(level = INFO)
@Message(value = "RDMSOS2200Dialect version: 1.0", id = 218)
void rdmsOs2200Dialect();
@LogMessage(level = INFO)
@Message(value = "Reading mappings from cache file: %s", id = 219)
void readingCachedMappings(File cachedFile);
@LogMessage(level = INFO)
@Message(value = "Reading mappings from file: %s", id = 220)
void readingMappingsFromFile(String path);
@LogMessage(level = INFO)
@Message(value = "Reading mappings from resource: %s", id = 221)
void readingMappingsFromResource(String resourceName);
@LogMessage(level = WARN)
@Message(value = "read-only cache configured for mutable collection [%s]", id = 222)
void readOnlyCacheConfiguredForMutableCollection(String name);
@LogMessage(level = WARN)
@Message(value = "Recognized obsolete hibernate namespace %s. Use namespace %s instead. Refer to Hibernate 3.6 Migration Guide!",
id = 223)
void recognizedObsoleteHibernateNamespace(String oldHibernateNamespace,
String hibernateNamespace);
@LogMessage(level = WARN)
@Message(value = "Property [%s] has been renamed to [%s]; update your properties appropriately", id = 225)
void renamedProperty(Object propertyName,
Object newPropertyName);
@LogMessage(level = INFO)
@Message(value = "Required a different provider: %s", id = 226)
void requiredDifferentProvider(String provider);
@LogMessage(level = INFO)
@Message(value = "Running hbm2ddl schema export", id = 227)
void runningHbm2ddlSchemaExport();
@LogMessage(level = INFO)
@Message(value = "Running hbm2ddl schema update", id = 228)
void runningHbm2ddlSchemaUpdate();
@LogMessage(level = INFO)
@Message(value = "Running schema validator", id = 229)
void runningSchemaValidator();
@LogMessage(level = INFO)
@Message(value = "Schema export complete", id = 230)
void schemaExportComplete();
@LogMessage(level = ERROR)
@Message(value = "Schema export unsuccessful", id = 231)
void schemaExportUnsuccessful(@Cause Exception e);
@LogMessage(level = INFO)
@Message(value = "Schema update complete", id = 232)
void schemaUpdateComplete();
@LogMessage(level = WARN)
@Message(value = "Scoping types to session factory %s after already scoped %s", id = 233)
void scopingTypesToSessionFactoryAfterAlreadyScoped(SessionFactoryImplementor factory,
SessionFactoryImplementor factory2);
@LogMessage(level = INFO)
@Message(value = "Searching for mapping documents in jar: %s", id = 235)
void searchingForMappingDocuments(String name);
@LogMessage(level = INFO)
@Message(value = "Second level cache hits: %s", id = 237)
void secondLevelCacheHits(long secondLevelCacheHitCount);
@LogMessage(level = INFO)
@Message(value = "Second level cache misses: %s", id = 238)
void secondLevelCacheMisses(long secondLevelCacheMissCount);
@LogMessage(level = INFO)
@Message(value = "Second level cache puts: %s", id = 239)
void secondLevelCachePuts(long secondLevelCachePutCount);
@LogMessage(level = INFO)
@Message(value = "Service properties: %s", id = 240)
void serviceProperties(Properties properties);
@LogMessage(level = INFO)
@Message(value = "Sessions closed: %s", id = 241)
void sessionsClosed(long sessionCloseCount);
@LogMessage(level = INFO)
@Message(value = "Sessions opened: %s", id = 242)
void sessionsOpened(long sessionOpenCount);
@LogMessage(level = ERROR)
@Message(value = "Setters of lazy classes cannot be final: %s.%s", id = 243)
void settersOfLazyClassesCannotBeFinal(String entityName,
String name);
@LogMessage(level = WARN)
@Message(value = "@Sort not allowed for an indexed collection, annotation ignored.", id = 244)
void sortAnnotationIndexedCollection();
@LogMessage(level = WARN)
@Message(value = "Manipulation query [%s] resulted in [%s] split queries", id = 245)
void splitQueries(String sourceQuery,
int length);
// @LogMessage(level = ERROR)
// @Message(value = "SQLException escaped proxy", id = 246)
// void sqlExceptionEscapedProxy(@Cause SQLException e);
@LogMessage(level = WARN)
@Message(value = "SQL Error: %s, SQLState: %s", id = 247)
void sqlWarning(int errorCode,
String sqlState);
@LogMessage(level = INFO)
@Message(value = "Starting query cache at region: %s", id = 248)
void startingQueryCache(String region);
@LogMessage(level = INFO)
@Message(value = "Starting service at JNDI name: %s", id = 249)
void startingServiceAtJndiName(String boundName);
@LogMessage(level = INFO)
@Message(value = "Starting update timestamps cache at region: %s", id = 250)
void startingUpdateTimestampsCache(String region);
@LogMessage(level = INFO)
@Message(value = "Start time: %s", id = 251)
void startTime(long startTime);
@LogMessage(level = INFO)
@Message(value = "Statements closed: %s", id = 252)
void statementsClosed(long closeStatementCount);
@LogMessage(level = INFO)
@Message(value = "Statements prepared: %s", id = 253)
void statementsPrepared(long prepareStatementCount);
@LogMessage(level = INFO)
@Message(value = "Stopping service", id = 255)
void stoppingService();
@LogMessage(level = INFO)
@Message(value = "sub-resolver threw unexpected exception, continuing to next : %s", id = 257)
void subResolverException(String message);
@LogMessage(level = INFO)
@Message(value = "Successful transactions: %s", id = 258)
void successfulTransactions(long committedTransactionCount);
@LogMessage(level = INFO)
@Message(value = "Synchronization [%s] was already registered", id = 259)
void synchronizationAlreadyRegistered(Synchronization synchronization);
@LogMessage(level = ERROR)
@Message(value = "Exception calling user Synchronization [%s] : %s", id = 260)
void synchronizationFailed(Synchronization synchronization,
Throwable t);
@LogMessage(level = INFO)
@Message(value = "Table found: %s", id = 261)
void tableFound(String string);
@LogMessage(level = INFO)
@Message(value = "Table not found: %s", id = 262)
void tableNotFound(String name);
@LogMessage(level = INFO)
@Message(value = "Transactions: %s", id = 266)
void transactions(long transactionCount);
@LogMessage(level = WARN)
@Message(value = "Transaction started on non-root session", id = 267)
void transactionStartedOnNonRootSession();
@LogMessage(level = INFO)
@Message(value = "Transaction strategy: %s", id = 268)
void transactionStrategy(String strategyClassName);
@LogMessage(level = WARN)
@Message(value = "Type [%s] defined no registration keys; ignoring", id = 269)
void typeDefinedNoRegistrationKeys(BasicType type);
@LogMessage(level = INFO)
@Message(value = "Type registration [%s] overrides previous : %s", id = 270)
void typeRegistrationOverridesPrevious(String key,
Type old);
@LogMessage(level = WARN)
@Message(value = "Naming exception occurred accessing Ejb3Configuration", id = 271)
void unableToAccessEjb3Configuration(@Cause NamingException e);
@LogMessage(level = ERROR)
@Message(value = "Error while accessing session factory with JNDI name %s", id = 272)
void unableToAccessSessionFactory(String sfJNDIName,
@Cause NamingException e);
@LogMessage(level = WARN)
@Message(value = "Error accessing type info result set : %s", id = 273)
void unableToAccessTypeInfoResultSet(String string);
@LogMessage(level = WARN)
@Message(value = "Unable to apply constraints on DDL for %s", id = 274)
void unableToApplyConstraints(String className,
@Cause Exception e);
@LogMessage(level = WARN)
@Message(value = "Could not bind Ejb3Configuration to JNDI", id = 276)
void unableToBindEjb3ConfigurationToJndi(@Cause JndiException e);
@LogMessage(level = WARN)
@Message(value = "Could not bind factory to JNDI", id = 277)
void unableToBindFactoryToJndi(@Cause JndiException e);
@LogMessage(level = INFO)
@Message(value = "Could not bind value '%s' to parameter: %s; %s", id = 278)
void unableToBindValueToParameter(String nullSafeToString,
int index,
String message);
@LogMessage(level = ERROR)
@Message(value = "Unable to build enhancement metamodel for %s", id = 279)
void unableToBuildEnhancementMetamodel(String className);
@LogMessage(level = INFO)
@Message(value = "Could not build SessionFactory using the MBean classpath - will try again using client classpath: %s",
id = 280)
void unableToBuildSessionFactoryUsingMBeanClasspath(String message);
@LogMessage(level = WARN)
@Message(value = "Unable to clean up callable statement", id = 281)
void unableToCleanUpCallableStatement(@Cause SQLException e);
@LogMessage(level = WARN)
@Message(value = "Unable to clean up prepared statement", id = 282)
void unableToCleanUpPreparedStatement(@Cause SQLException e);
@LogMessage(level = WARN)
@Message(value = "Unable to cleanup temporary id table after use [%s]", id = 283)
void unableToCleanupTemporaryIdTable(Throwable t);
@LogMessage(level = ERROR)
@Message(value = "Error closing connection", id = 284)
void unableToCloseConnection(@Cause Exception e);
@LogMessage(level = INFO)
@Message(value = "Error closing InitialContext [%s]", id = 285)
void unableToCloseInitialContext(String string);
@LogMessage(level = ERROR)
@Message(value = "Error closing input files: %s", id = 286)
void unableToCloseInputFiles(String name,
@Cause IOException e);
@LogMessage(level = WARN)
@Message(value = "Could not close input stream", id = 287)
void unableToCloseInputStream(@Cause IOException e);
@LogMessage(level = WARN)
@Message(value = "Could not close input stream for %s", id = 288)
void unableToCloseInputStreamForResource(String resourceName,
@Cause IOException e);
@LogMessage(level = INFO)
@Message(value = "Unable to close iterator", id = 289)
void unableToCloseIterator(@Cause SQLException e);
@LogMessage(level = ERROR)
@Message(value = "Could not close jar: %s", id = 290)
void unableToCloseJar(String message);
@LogMessage(level = ERROR)
@Message(value = "Error closing output file: %s", id = 291)
void unableToCloseOutputFile(String outputFile,
@Cause IOException e);
@LogMessage(level = WARN)
@Message(value = "IOException occurred closing output stream", id = 292)
void unableToCloseOutputStream(@Cause IOException e);
@LogMessage(level = WARN)
@Message(value = "Problem closing pooled connection", id = 293)
void unableToClosePooledConnection(@Cause SQLException e);
@LogMessage(level = ERROR)
@Message(value = "Could not close session", id = 294)
void unableToCloseSession(@Cause HibernateException e);
@LogMessage(level = ERROR)
@Message(value = "Could not close session during rollback", id = 295)
void unableToCloseSessionDuringRollback(@Cause Exception e);
@LogMessage(level = WARN)
@Message(value = "IOException occurred closing stream", id = 296)
void unableToCloseStream(@Cause IOException e);
@LogMessage(level = ERROR)
@Message(value = "Could not close stream on hibernate.properties: %s", id = 297)