blob: 4514bd9270eb6ea8369eb03f3e6398b963a2f378 (
plain) (
blame)
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
|
/**
* <copyright>
*
* Copyright (c) 2015 Springsite BV (The Netherlands) and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Taal
* </copyright>
*
* $Id: SyntheticPropertyHandler.java,v 1.5 2010/11/11 10:28:19 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate.mapping.property;
import java.util.Map;
import org.hibernate.HibernateException;
import org.hibernate.engine.spi.SessionImplementor;
/**
* See {@link SyntheticIndexPropertyHandler}, extends but prevents returning a value in case of
* first insert. This because hibernate will do this explicitly later.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
* @version $Revision: 1.5 $
*/
@SuppressWarnings("serial")
public class SyntheticIndexPropertyHandler extends SyntheticPropertyHandler {
/** Constructor */
public SyntheticIndexPropertyHandler(String propertyName) {
super(propertyName);
}
/*
* (non-Javadoc)
*
* @see org.hibernate.property.Getter#getForInsert(java.lang.Object, java.util.Map,
* org.hibernate.engine.SessionImplementor)
*/
@SuppressWarnings("rawtypes")
public Object getForInsert(Object arg0, Map arg1, SessionImplementor arg2)
throws HibernateException {
return null;
}
}
|