KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > loader > ColumnEntityAliases


1 package org.hibernate.loader;
2
3 import java.util.Map JavaDoc;
4
5 import org.hibernate.persister.entity.Loadable;
6
7 /**
8  * EntityAliases that chooses the column names over the alias names.
9  *
10  * @author max
11  *
12  */

13 public class ColumnEntityAliases extends DefaultEntityAliases {
14
15     public ColumnEntityAliases(Map JavaDoc returnProperties, Loadable persister, String JavaDoc suffix) {
16         super(returnProperties, persister, suffix);
17     }
18     
19     protected String JavaDoc[] getIdentifierAliases(Loadable persister, String JavaDoc suffix) {
20         return persister.getIdentifierColumnNames();
21     }
22     
23     protected String JavaDoc getDiscriminatorAlias(Loadable persister, String JavaDoc suffix) {
24         return persister.getDiscriminatorColumnName();
25     }
26     
27     protected String JavaDoc[] getPropertyAliases(Loadable persister, int j) {
28         return persister.getPropertyColumnNames(j);
29     }
30      
31
32 }
33
Popular Tags