1
|
/**
|
2
|
* Copyright (C) 2012 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.hibernate.search;
|
11
|
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import org.hibernate.search.bridge.StringBridge;
|
15
|
|
16
|
/**
|
17
|
* @author andreas
|
18
|
* @date Jun 19, 2012
|
19
|
*
|
20
|
*/
|
21
|
public class UuidBridge implements StringBridge {
|
22
|
|
23
|
public String objectToString(Object object) {
|
24
|
if(object != null) {
|
25
|
return ((UUID)object).toString();
|
26
|
}
|
27
|
return null;
|
28
|
}
|
29
|
|
30
|
}
|