A few minute ago get an error "duplicate alias" and I started the think about "Can we check alias was already created? alias was already exists."
Do you know about this? Can we check this?
for example :
Criteria criteria = getSeession().createCriteria(Example.class,"example");
criteria.createAlias("example.test","test");
Now I want this, I'll check if this "test" alias is already created I won't create not I create.
Is that possible? If is that possible how? If Is not possible, Could you offer any other solution?