Author: steve.ebersole(a)jboss.com
Date: 2009-08-13 15:05:34 -0400 (Thu, 13 Aug 2009)
New Revision: 17299
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/connection/InjectedDataSourceConnectionProvider.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/BeanCallback.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/Callback.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackHandlerConsumer.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackResolver.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3AutoFlushEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3DeleteEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEntityEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3MergeEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistOnFlushEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostDeleteEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostInsertEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostLoadEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostUpdateEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveOrUpdateEventListener.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EntityCallbackHandler.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/ListenerCallback.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/instrument/InterceptFieldClassFileTransformer.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/BasicTypeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EmbeddableTypeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeDelegator.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/ManagedTypeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetadataContext.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelFactory.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/PluralAttributeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/SingularAttributeImpl.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransaction.java
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransactionFactory.java
Log:
copyright notice
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/connection/InjectedDataSourceConnectionProvider.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/connection/InjectedDataSourceConnectionProvider.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/connection/InjectedDataSourceConnectionProvider.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.connection;
import java.util.Properties;
@@ -13,18 +33,21 @@
import org.slf4j.Logger;
/**
- * A connection provider that uses an injected <tt>DataSource</tt>.
- * Setters has to be called before configure()
+ * A specialization of {@link DatasourceConnectionProvider} which uses the {@link
DataSource} specified vi
+ * {@link #setDataSource} rather than locating it from JNDI.
+ * <p/>
+ * NOTE : {@link #setDataSource} must be called prior to {@link #configure}.
+ * <p/>
+ * TODO : could not find where #setDataSource is actually called. Can't this just be
passed in to #configure???
*
* @author Emmanuel Bernard
- * @see org.hibernate.connection.ConnectionProvider
*/
public class InjectedDataSourceConnectionProvider extends DatasourceConnectionProvider {
+ private final Logger log = LoggerFactory.getLogger(
InjectedDataSourceConnectionProvider.class );
+
private String user;
private String pass;
- private final Logger log = LoggerFactory.getLogger(
InjectedDataSourceConnectionProvider.class );
-
public void setDataSource(DataSource ds) {
super.setDataSource( ds );
}
@@ -33,7 +56,9 @@
user = props.getProperty( Environment.USER );
pass = props.getProperty( Environment.PASS );
- if ( getDataSource() == null ) throw new HibernateException( "No datasource
provided" );
+ if ( getDataSource() == null ) {
+ throw new HibernateException( "No datasource provided" );
+ }
log.info( "Using provided datasource" );
}
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/BeanCallback.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/BeanCallback.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/BeanCallback.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -11,7 +26,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public class BeanCallback extends Callback {
public BeanCallback(Method callbackMethod) {
Modified: core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/Callback.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/Callback.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/Callback.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -19,7 +34,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public abstract class Callback implements Serializable {
transient protected Method callbackMethod;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackHandlerConsumer.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackHandlerConsumer.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackHandlerConsumer.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
/**
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackResolver.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackResolver.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/CallbackResolver.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,9 +1,23 @@
-// $Id$
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3AutoFlushEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3AutoFlushEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3AutoFlushEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import org.hibernate.engine.CascadingAction;
@@ -8,7 +28,7 @@
/**
* In EJB3, it is the create operation that is cascaded to unmanaged
- * ebtities at flush time (instead of the save-update operation in
+ * entities at flush time (instead of the save-update operation in
* Hibernate).
*
* @author Gavin King
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3DeleteEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3DeleteEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3DeleteEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import java.io.Serializable;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEntityEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEntityEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEntityEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import org.hibernate.EntityMode;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3FlushEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import org.hibernate.engine.CascadingAction;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3MergeEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3MergeEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3MergeEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,11 +1,30 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import java.io.Serializable;
import org.hibernate.event.EventSource;
import org.hibernate.event.def.DefaultMergeEventListener;
-import org.hibernate.persister.entity.EntityPersister;
/**
* Overrides the LifeCycle OnSave call to call the PrePersist operation
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import java.io.Serializable;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistOnFlushEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistOnFlushEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PersistOnFlushEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import org.hibernate.engine.CascadingAction;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostDeleteEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostDeleteEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostDeleteEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -11,7 +26,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public class EJB3PostDeleteEventListener implements PostDeleteEventListener,
CallbackHandlerConsumer {
EntityCallbackHandler callbackHandler;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostInsertEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostInsertEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostInsertEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -11,7 +26,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public class EJB3PostInsertEventListener implements PostInsertEventListener,
CallbackHandlerConsumer {
EntityCallbackHandler callbackHandler;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostLoadEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostLoadEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostLoadEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -11,7 +26,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public class EJB3PostLoadEventListener implements PostLoadEventListener,
CallbackHandlerConsumer {
EntityCallbackHandler callbackHandler;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostUpdateEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostUpdateEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3PostUpdateEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,9 +1,23 @@
-// $Id$
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,11 +1,30 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import java.io.Serializable;
import org.hibernate.event.EventSource;
import org.hibernate.event.def.DefaultSaveEventListener;
-import org.hibernate.persister.entity.EntityPersister;
/**
* Overrides the LifeCycle OnSave call to call the PrePersist operation
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveOrUpdateEventListener.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveOrUpdateEventListener.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EJB3SaveOrUpdateEventListener.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,11 +1,30 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.event;
import java.io.Serializable;
import org.hibernate.event.EventSource;
import org.hibernate.event.def.DefaultSaveOrUpdateEventListener;
-import org.hibernate.persister.entity.EntityPersister;
/**
* Overrides the LifeCycle OnSave call to call the PrePersist operation
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EntityCallbackHandler.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EntityCallbackHandler.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/EntityCallbackHandler.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,9 +1,23 @@
-// $Id:$
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/ListenerCallback.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/ListenerCallback.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/event/ListenerCallback.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource EJB server
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
*
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
+ * 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.ejb.event;
@@ -16,7 +31,6 @@
/**
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
- * @version $Revision: 11282 $
*/
public class ListenerCallback extends Callback {
protected transient Object listener;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/instrument/InterceptFieldClassFileTransformer.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/instrument/InterceptFieldClassFileTransformer.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/instrument/InterceptFieldClassFileTransformer.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.instrument;
import java.lang.instrument.IllegalClassFormatException;
@@ -20,9 +40,6 @@
private org.hibernate.bytecode.ClassTransformer classTransformer;
public InterceptFieldClassFileTransformer(List<String> entities) {
-// classTransformer = Environment.getBytecodeProvider().getEntityClassTransformer(
-// null, entities.toArray( new String[ entities.size() ] )
-// );
final List<String> copyEntities = new ArrayList<String>( entities.size()
);
copyEntities.addAll( entities );
classTransformer = Environment.getBytecodeProvider().getTransformer(
@@ -48,11 +65,12 @@
);
}
- public byte[]
- transform(
- ClassLoader loader, String className, Class<?> classBeingRedefined,
- ProtectionDomain protectionDomain, byte[] classfileBuffer
- ) throws IllegalClassFormatException {
+ public byte[] transform(
+ ClassLoader loader,
+ String className,
+ Class<?> classBeingRedefined,
+ ProtectionDomain protectionDomain,
+ byte[] classfileBuffer ) throws IllegalClassFormatException {
try {
return classTransformer.transform( loader, className, classBeingRedefined,
protectionDomain, classfileBuffer );
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/BasicTypeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/BasicTypeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/BasicTypeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.io.Serializable;
@@ -2,3 +23,2 @@
import javax.persistence.metamodel.BasicType;
-import javax.persistence.metamodel.Type;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EmbeddableTypeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EmbeddableTypeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EmbeddableTypeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Iterator;
@@ -3,5 +24,4 @@
import java.io.Serializable;
import javax.persistence.metamodel.EmbeddableType;
-import javax.persistence.metamodel.Type;
import org.hibernate.mapping.Property;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeDelegator.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeDelegator.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeDelegator.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Set;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/EntityTypeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Collections;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/ManagedTypeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/ManagedTypeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/ManagedTypeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Iterator;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetadataContext.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetadataContext.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetadataContext.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.HashMap;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelFactory.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelFactory.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelFactory.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Iterator;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/MetamodelImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.util.Set;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/PluralAttributeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/PluralAttributeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/PluralAttributeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.lang.reflect.Member;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/SingularAttributeImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/SingularAttributeImpl.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/metamodel/SingularAttributeImpl.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.metamodel;
import java.lang.reflect.Member;
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransaction.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransaction.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransaction.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.transaction;
import javax.transaction.SystemException;
@@ -28,8 +48,7 @@
public boolean isTransactionInProgress(
JDBCContext jdbcContext,
- TransactionFactory.Context transactionContext
- ) {
+ TransactionFactory.Context transactionContext) {
try {
return status == JoinStatus.JOINED && isTransactionInProgress(
transactionContext.getFactory().getTransactionManager().getTransaction()
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransactionFactory.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransactionFactory.java 2009-08-13
18:59:30 UTC (rev 17298)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/transaction/JoinableCMTTransactionFactory.java 2009-08-13
19:05:34 UTC (rev 17299)
@@ -1,4 +1,24 @@
-//$Id$
+/*
+ * Copyright (c) 2009, Red Hat Middleware LLC 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 Middleware LLC.
+ *
+ * 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.ejb.transaction;
import org.hibernate.HibernateException;
@@ -13,16 +33,20 @@
* @author Emmanuel Bernard
*/
public class JoinableCMTTransactionFactory extends CMTTransactionFactory {
- public Transaction createTransaction(JDBCContext jdbcContext, Context
transactionContext)
- throws HibernateException {
+ public Transaction createTransaction(
+ JDBCContext jdbcContext,
+ Context transactionContext) throws HibernateException {
return new JoinableCMTTransaction( jdbcContext, transactionContext );
}
@Override
public boolean isTransactionInProgress(
- JDBCContext jdbcContext, Context transactionContext, Transaction transaction
- ) {
- if ( transaction == null ) return false; //should not happen though
+ JDBCContext jdbcContext,
+ Context transactionContext,
+ Transaction transaction) {
+ if ( transaction == null ) {
+ return false; //should not happen though
+ }
JoinableCMTTransaction joinableCMTTransaction = ( (JoinableCMTTransaction) transaction
);
joinableCMTTransaction.tryJoiningTransaction();
return joinableCMTTransaction.isTransactionInProgress( jdbcContext, transactionContext
);