diff --git a/envers/src/main/java/org/hibernate/tool/ant/EnversHibernateToolTask.java b/envers/src/main/java/org/hibernate/tool/ant/EnversHibernateToolTask.java index c1a9607175..1e5459eed8 100644 --- a/envers/src/main/java/org/hibernate/tool/ant/EnversHibernateToolTask.java +++ b/envers/src/main/java/org/hibernate/tool/ant/EnversHibernateToolTask.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.tool.ant; -import org.jboss.envers.ant.JPAConfigurationTaskWithEnvers; -import org.jboss.envers.ant.ConfigurationTaskWithEnvers; -import org.jboss.envers.ant.AnnotationConfigurationTaskWithEnvers; import org.apache.tools.ant.BuildException; +import org.jboss.envers.ant.AnnotationConfigurationTaskWithEnvers; +import org.jboss.envers.ant.ConfigurationTaskWithEnvers; +import org.jboss.envers.ant.JPAConfigurationTaskWithEnvers; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/DefaultRevisionEntity.java b/envers/src/main/java/org/jboss/envers/DefaultRevisionEntity.java index b33562fd67..c271affb63 100644 --- a/envers/src/main/java/org/jboss/envers/DefaultRevisionEntity.java +++ b/envers/src/main/java/org/jboss/envers/DefaultRevisionEntity.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import javax.persistence.MappedSuperclass; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Transient; -import java.util.Date; import java.text.DateFormat; +import java.util.Date; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.MappedSuperclass; +import javax.persistence.Transient; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/ModificationStore.java b/envers/src/main/java/org/jboss/envers/ModificationStore.java index 9b99a97e12..3c532a569b 100644 --- a/envers/src/main/java/org/jboss/envers/ModificationStore.java +++ b/envers/src/main/java/org/jboss/envers/ModificationStore.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; diff --git a/envers/src/main/java/org/jboss/envers/RevisionEntity.java b/envers/src/main/java/org/jboss/envers/RevisionEntity.java index 692d905d5e..0c9e592ef1 100644 --- a/envers/src/main/java/org/jboss/envers/RevisionEntity.java +++ b/envers/src/main/java/org/jboss/envers/RevisionEntity.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import java.lang.annotation.ElementType; /** * Marks an entity to be created whenever a new revision is generated. The revisions entity must have diff --git a/envers/src/main/java/org/jboss/envers/RevisionListener.java b/envers/src/main/java/org/jboss/envers/RevisionListener.java index e38c0edd9b..97e9603dbd 100644 --- a/envers/src/main/java/org/jboss/envers/RevisionListener.java +++ b/envers/src/main/java/org/jboss/envers/RevisionListener.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; diff --git a/envers/src/main/java/org/jboss/envers/RevisionNumber.java b/envers/src/main/java/org/jboss/envers/RevisionNumber.java index c52fa042e2..6b57bd570a 100644 --- a/envers/src/main/java/org/jboss/envers/RevisionNumber.java +++ b/envers/src/main/java/org/jboss/envers/RevisionNumber.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import java.lang.annotation.ElementType; /** * Marks a property which will hold the number of the revision in a revision entity, see diff --git a/envers/src/main/java/org/jboss/envers/RevisionTimestamp.java b/envers/src/main/java/org/jboss/envers/RevisionTimestamp.java index f8f0b8192b..1995ac0cb2 100644 --- a/envers/src/main/java/org/jboss/envers/RevisionTimestamp.java +++ b/envers/src/main/java/org/jboss/envers/RevisionTimestamp.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import java.lang.annotation.ElementType; /** * Marks a property which will hold the timestamp of the revision in a revision entity, see diff --git a/envers/src/main/java/org/jboss/envers/RevisionType.java b/envers/src/main/java/org/jboss/envers/RevisionType.java index 4cec955ae8..3b96a5bd64 100644 --- a/envers/src/main/java/org/jboss/envers/RevisionType.java +++ b/envers/src/main/java/org/jboss/envers/RevisionType.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; diff --git a/envers/src/main/java/org/jboss/envers/SecondaryVersionsTable.java b/envers/src/main/java/org/jboss/envers/SecondaryVersionsTable.java index 487d51600b..995cf23ef2 100644 --- a/envers/src/main/java/org/jboss/envers/SecondaryVersionsTable.java +++ b/envers/src/main/java/org/jboss/envers/SecondaryVersionsTable.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; diff --git a/envers/src/main/java/org/jboss/envers/SecondaryVersionsTables.java b/envers/src/main/java/org/jboss/envers/SecondaryVersionsTables.java index d7bc2702a5..9ebe02a8b5 100644 --- a/envers/src/main/java/org/jboss/envers/SecondaryVersionsTables.java +++ b/envers/src/main/java/org/jboss/envers/SecondaryVersionsTables.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/Unversioned.java b/envers/src/main/java/org/jboss/envers/Unversioned.java index 0c8e6a3bfe..29933926b2 100644 --- a/envers/src/main/java/org/jboss/envers/Unversioned.java +++ b/envers/src/main/java/org/jboss/envers/Unversioned.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** * When applied to a field, indicates that this field should not be versioned. diff --git a/envers/src/main/java/org/jboss/envers/Versioned.java b/envers/src/main/java/org/jboss/envers/Versioned.java index 5323c66560..b566104b3b 100644 --- a/envers/src/main/java/org/jboss/envers/Versioned.java +++ b/envers/src/main/java/org/jboss/envers/Versioned.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** * When applied to a class, indicates that all of its properties should be versioned. diff --git a/envers/src/main/java/org/jboss/envers/VersionsJoinTable.java b/envers/src/main/java/org/jboss/envers/VersionsJoinTable.java index 03334ee4cf..bc524004d2 100644 --- a/envers/src/main/java/org/jboss/envers/VersionsJoinTable.java +++ b/envers/src/main/java/org/jboss/envers/VersionsJoinTable.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import javax.persistence.JoinColumn; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import javax.persistence.JoinColumn; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/VersionsReader.java b/envers/src/main/java/org/jboss/envers/VersionsReader.java index 7f4473af31..ca4781ce69 100644 --- a/envers/src/main/java/org/jboss/envers/VersionsReader.java +++ b/envers/src/main/java/org/jboss/envers/VersionsReader.java @@ -1,33 +1,35 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; +import java.util.Date; +import java.util.List; + import org.jboss.envers.exception.NotVersionedException; import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.query.VersionsQueryCreator; -import java.util.List; -import java.util.Date; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/VersionsReaderFactory.java b/envers/src/main/java/org/jboss/envers/VersionsReaderFactory.java index 70a8859b86..061d36c4dd 100644 --- a/envers/src/main/java/org/jboss/envers/VersionsReaderFactory.java +++ b/envers/src/main/java/org/jboss/envers/VersionsReaderFactory.java @@ -1,36 +1,39 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; +import javax.persistence.EntityManager; + +import org.jboss.envers.event.VersionsEventListener; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.reader.VersionsReaderImpl; +import static org.jboss.envers.tools.ArraysTools.arrayIncludesInstanceOf; + import org.hibernate.Session; +import org.hibernate.engine.SessionImplementor; import org.hibernate.event.EventListeners; import org.hibernate.event.PostInsertEventListener; -import org.hibernate.engine.SessionImplementor; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.event.VersionsEventListener; -import static org.jboss.envers.tools.ArraysTools.arrayIncludesInstanceOf; -import org.jboss.envers.reader.VersionsReaderImpl; - -import javax.persistence.EntityManager; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/VersionsTable.java b/envers/src/main/java/org/jboss/envers/VersionsTable.java index 59b0f740cf..4afbe08290 100644 --- a/envers/src/main/java/org/jboss/envers/VersionsTable.java +++ b/envers/src/main/java/org/jboss/envers/VersionsTable.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers; -import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/ant/AnnotationConfigurationTaskWithEnvers.java b/envers/src/main/java/org/jboss/envers/ant/AnnotationConfigurationTaskWithEnvers.java index 5e8c2e0787..16586b3831 100644 --- a/envers/src/main/java/org/jboss/envers/ant/AnnotationConfigurationTaskWithEnvers.java +++ b/envers/src/main/java/org/jboss/envers/ant/AnnotationConfigurationTaskWithEnvers.java @@ -1,30 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.ant; -import org.hibernate.tool.ant.AnnotationConfigurationTask; -import org.hibernate.cfg.Configuration; import org.jboss.envers.configuration.VersionsConfiguration; +import org.hibernate.cfg.Configuration; +import org.hibernate.tool.ant.AnnotationConfigurationTask; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/ant/ConfigurationTaskWithEnvers.java b/envers/src/main/java/org/jboss/envers/ant/ConfigurationTaskWithEnvers.java index f68485251c..48960a6aa1 100644 --- a/envers/src/main/java/org/jboss/envers/ant/ConfigurationTaskWithEnvers.java +++ b/envers/src/main/java/org/jboss/envers/ant/ConfigurationTaskWithEnvers.java @@ -1,30 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.ant; -import org.hibernate.tool.ant.ConfigurationTask; -import org.hibernate.cfg.Configuration; import org.jboss.envers.configuration.VersionsConfiguration; +import org.hibernate.cfg.Configuration; +import org.hibernate.tool.ant.ConfigurationTask; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/ant/JPAConfigurationTaskWithEnvers.java b/envers/src/main/java/org/jboss/envers/ant/JPAConfigurationTaskWithEnvers.java index cc90af39a3..d0e0b2d034 100644 --- a/envers/src/main/java/org/jboss/envers/ant/JPAConfigurationTaskWithEnvers.java +++ b/envers/src/main/java/org/jboss/envers/ant/JPAConfigurationTaskWithEnvers.java @@ -1,30 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.ant; -import org.hibernate.tool.ant.JPAConfigurationTask; -import org.hibernate.cfg.Configuration; import org.jboss.envers.configuration.VersionsConfiguration; +import org.hibernate.cfg.Configuration; +import org.hibernate.tool.ant.JPAConfigurationTask; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/configuration/EntitiesConfigurator.java b/envers/src/main/java/org/jboss/envers/configuration/EntitiesConfigurator.java index b0052ef5cb..c0b6ccab19 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/EntitiesConfigurator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/EntitiesConfigurator.java @@ -1,51 +1,54 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; -import org.jboss.envers.entities.EntitiesConfigurations; -import org.jboss.envers.configuration.metadata.VersionsMetadataGenerator; -import org.jboss.envers.configuration.metadata.PersistentClassVersioningData; -import org.jboss.envers.configuration.metadata.AnnotationsMetadataReader; -import org.jboss.envers.configuration.metadata.EntityXmlMappingData; -import org.jboss.envers.tools.graph.GraphTopologicalSort; -import org.jboss.envers.tools.reflection.YReflectionManager; -import org.jboss.envers.tools.StringTools; -import org.dom4j.io.DOMWriter; -import org.dom4j.io.XMLWriter; -import org.dom4j.io.OutputFormat; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.Writer; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.Element; -import org.hibernate.mapping.PersistentClass; +import org.dom4j.io.DOMWriter; +import org.dom4j.io.OutputFormat; +import org.dom4j.io.XMLWriter; +import org.jboss.envers.configuration.metadata.AnnotationsMetadataReader; +import org.jboss.envers.configuration.metadata.EntityXmlMappingData; +import org.jboss.envers.configuration.metadata.PersistentClassVersioningData; +import org.jboss.envers.configuration.metadata.VersionsMetadataGenerator; +import org.jboss.envers.entities.EntitiesConfigurations; +import org.jboss.envers.tools.StringTools; +import org.jboss.envers.tools.graph.GraphTopologicalSort; +import org.jboss.envers.tools.reflection.YReflectionManager; + import org.hibernate.MappingException; import org.hibernate.cfg.Configuration; - -import java.util.Iterator; -import java.util.Map; -import java.util.HashMap; -import java.io.ByteArrayOutputStream; -import java.io.Writer; -import java.io.PrintWriter; -import java.io.IOException; +import org.hibernate.mapping.PersistentClass; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/GlobalConfiguration.java b/envers/src/main/java/org/jboss/envers/configuration/GlobalConfiguration.java index ca5d9f456c..fb917f7a86 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/GlobalConfiguration.java +++ b/envers/src/main/java/org/jboss/envers/configuration/GlobalConfiguration.java @@ -1,25 +1,25 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; diff --git a/envers/src/main/java/org/jboss/envers/configuration/PersistentClassGraphDefiner.java b/envers/src/main/java/org/jboss/envers/configuration/PersistentClassGraphDefiner.java index fbcf742e3c..21b4558e64 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/PersistentClassGraphDefiner.java +++ b/envers/src/main/java/org/jboss/envers/configuration/PersistentClassGraphDefiner.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.cfg.Configuration; -import org.jboss.envers.tools.graph.GraphDefiner; -import org.jboss.envers.tools.Tools; - -import java.util.List; -import java.util.Iterator; import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +import org.jboss.envers.tools.Tools; +import org.jboss.envers.tools.graph.GraphDefiner; + +import org.hibernate.cfg.Configuration; +import org.hibernate.mapping.PersistentClass; /** * Defines a graph, where the vertexes are all persistent classes, and there is an edge from diff --git a/envers/src/main/java/org/jboss/envers/configuration/RevisionInfoConfiguration.java b/envers/src/main/java/org/jboss/envers/configuration/RevisionInfoConfiguration.java index 9ce57a3b19..a548c95fac 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/RevisionInfoConfiguration.java +++ b/envers/src/main/java/org/jboss/envers/configuration/RevisionInfoConfiguration.java @@ -1,43 +1,52 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; -import org.jboss.envers.tools.reflection.YClass; -import org.jboss.envers.tools.reflection.YReflectionManager; -import org.jboss.envers.tools.reflection.YProperty; -import org.jboss.envers.tools.MutableBoolean; -import org.jboss.envers.*; -import org.jboss.envers.configuration.metadata.MetadataTools; -import org.jboss.envers.revisioninfo.*; -import org.hibernate.MappingException; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.cfg.Configuration; +import java.util.Iterator; + import org.dom4j.Document; import org.dom4j.DocumentHelper; import org.dom4j.Element; +import org.jboss.envers.DefaultRevisionEntity; +import org.jboss.envers.RevisionEntity; +import org.jboss.envers.RevisionListener; +import org.jboss.envers.RevisionNumber; +import org.jboss.envers.RevisionTimestamp; +import org.jboss.envers.Versioned; +import org.jboss.envers.configuration.metadata.MetadataTools; +import org.jboss.envers.revisioninfo.DefaultRevisionInfoGenerator; +import org.jboss.envers.revisioninfo.RevisionInfoGenerator; +import org.jboss.envers.revisioninfo.RevisionInfoNumberReader; +import org.jboss.envers.revisioninfo.RevisionInfoQueryCreator; +import org.jboss.envers.tools.MutableBoolean; +import org.jboss.envers.tools.reflection.YClass; +import org.jboss.envers.tools.reflection.YProperty; +import org.jboss.envers.tools.reflection.YReflectionManager; -import java.util.Iterator; +import org.hibernate.MappingException; +import org.hibernate.cfg.Configuration; +import org.hibernate.mapping.PersistentClass; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/VersionsConfiguration.java b/envers/src/main/java/org/jboss/envers/configuration/VersionsConfiguration.java index dce9a59bd3..ea036c17af 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/VersionsConfiguration.java +++ b/envers/src/main/java/org/jboss/envers/configuration/VersionsConfiguration.java @@ -1,34 +1,39 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; -import org.hibernate.cfg.Configuration; +import java.util.Map; +import java.util.Properties; +import java.util.WeakHashMap; + import org.jboss.envers.entities.EntitiesConfigurations; +import org.jboss.envers.revisioninfo.RevisionInfoNumberReader; +import org.jboss.envers.revisioninfo.RevisionInfoQueryCreator; import org.jboss.envers.synchronization.VersionsSyncManager; import org.jboss.envers.tools.reflection.YReflectionManager; -import org.jboss.envers.revisioninfo.RevisionInfoQueryCreator; -import org.jboss.envers.revisioninfo.RevisionInfoNumberReader; -import java.util.*; +import org.hibernate.cfg.Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/VersionsEntitiesConfiguration.java b/envers/src/main/java/org/jboss/envers/configuration/VersionsEntitiesConfiguration.java index ccd76ad4b7..3964d7debe 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/VersionsEntitiesConfiguration.java +++ b/envers/src/main/java/org/jboss/envers/configuration/VersionsEntitiesConfiguration.java @@ -1,27 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration; -import java.util.*; +import java.util.HashMap; +import java.util.Map; +import java.util.Properties; /** * Configuration of versions entities - names of fields, entities and tables created to store versioning information. diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/AnnotationsMetadataReader.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/AnnotationsMetadataReader.java index 4fa8d8c0f4..1eab9cad63 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/AnnotationsMetadataReader.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/AnnotationsMetadataReader.java @@ -1,38 +1,45 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import javax.persistence.Version; +import java.lang.annotation.Annotation; import javax.persistence.MapKey; +import javax.persistence.Version; +import org.jboss.envers.SecondaryVersionsTable; +import org.jboss.envers.SecondaryVersionsTables; +import org.jboss.envers.Unversioned; +import org.jboss.envers.Versioned; +import org.jboss.envers.VersionsJoinTable; +import org.jboss.envers.VersionsTable; import org.jboss.envers.configuration.GlobalConfiguration; import org.jboss.envers.tools.reflection.YClass; import org.jboss.envers.tools.reflection.YProperty; import org.jboss.envers.tools.reflection.YReflectionManager; -import org.jboss.envers.*; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.MappingException; -import java.lang.annotation.Annotation; +import org.hibernate.MappingException; +import org.hibernate.mapping.PersistentClass; /** * A helper class to read versioning meta-data from annotations on a persistent class. diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/BasicMetadataGenerator.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/BasicMetadataGenerator.java index c58f3ad8f5..7c614f29d8 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/BasicMetadataGenerator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/BasicMetadataGenerator.java @@ -1,39 +1,49 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.dom4j.Element; -import org.hibernate.mapping.*; -import org.hibernate.type.*; -import org.hibernate.util.StringHelper; -import org.jboss.envers.entities.mapper.SimpleMapperBuilder; -import org.jboss.envers.entities.mapper.CompositeMapperBuilder; -import org.jboss.envers.ModificationStore; - import java.util.Iterator; import java.util.Properties; +import org.dom4j.Element; +import org.jboss.envers.ModificationStore; +import org.jboss.envers.entities.mapper.CompositeMapperBuilder; +import org.jboss.envers.entities.mapper.SimpleMapperBuilder; + +import org.hibernate.mapping.Column; +import org.hibernate.mapping.Component; +import org.hibernate.mapping.Property; +import org.hibernate.mapping.SimpleValue; +import org.hibernate.mapping.Value; +import org.hibernate.type.ComponentType; +import org.hibernate.type.CompositeCustomType; +import org.hibernate.type.CustomType; +import org.hibernate.type.ImmutableType; +import org.hibernate.type.MutableType; +import org.hibernate.type.Type; +import org.hibernate.util.StringHelper; + /** * Generates metadata for basic properties: immutable types (including enums) and components * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/CollectionMetadataGenerator.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/CollectionMetadataGenerator.java index 4d6c796458..f5b2755fb2 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/CollectionMetadataGenerator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/CollectionMetadataGenerator.java @@ -1,52 +1,84 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.hibernate.mapping.*; -import org.hibernate.mapping.Collection; -import org.hibernate.MappingException; -import org.hibernate.type.*; -import org.jboss.envers.entities.mapper.CompositeMapperBuilder; -import org.jboss.envers.entities.mapper.relation.*; -import org.jboss.envers.entities.mapper.relation.lazy.proxy.*; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.mapper.relation.query.OneVersionsEntityQueryGenerator; -import org.jboss.envers.entities.mapper.relation.component.*; -import org.jboss.envers.entities.EntityConfiguration; -import org.jboss.envers.entities.IdMappingData; -import org.jboss.envers.tools.Tools; -import org.jboss.envers.tools.StringTools; -import org.jboss.envers.ModificationStore; -import org.jboss.envers.VersionsJoinTable; -import org.dom4j.Element; - -import javax.persistence.JoinColumn; -import java.util.*; -import java.util.Set; +import java.lang.annotation.Annotation; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; import java.util.List; import java.util.Map; -import java.lang.annotation.Annotation; +import java.util.Set; +import java.util.TreeMap; +import java.util.TreeSet; +import javax.persistence.JoinColumn; + +import org.dom4j.Element; +import org.jboss.envers.ModificationStore; +import org.jboss.envers.VersionsJoinTable; +import org.jboss.envers.entities.EntityConfiguration; +import org.jboss.envers.entities.IdMappingData; +import org.jboss.envers.entities.mapper.CompositeMapperBuilder; +import org.jboss.envers.entities.mapper.relation.BasicCollectionMapper; +import org.jboss.envers.entities.mapper.relation.CommonCollectionMapperData; +import org.jboss.envers.entities.mapper.relation.ListCollectionMapper; +import org.jboss.envers.entities.mapper.relation.MapCollectionMapper; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.entities.mapper.relation.component.MiddleDummyComponentMapper; +import org.jboss.envers.entities.mapper.relation.component.MiddleMapKeyIdComponentMapper; +import org.jboss.envers.entities.mapper.relation.component.MiddleMapKeyPropertyComponentMapper; +import org.jboss.envers.entities.mapper.relation.component.MiddleRelatedComponentMapper; +import org.jboss.envers.entities.mapper.relation.component.MiddleSimpleComponentMapper; +import org.jboss.envers.entities.mapper.relation.lazy.proxy.ListProxy; +import org.jboss.envers.entities.mapper.relation.lazy.proxy.MapProxy; +import org.jboss.envers.entities.mapper.relation.lazy.proxy.SetProxy; +import org.jboss.envers.entities.mapper.relation.lazy.proxy.SortedMapProxy; +import org.jboss.envers.entities.mapper.relation.lazy.proxy.SortedSetProxy; +import org.jboss.envers.entities.mapper.relation.query.OneVersionsEntityQueryGenerator; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.tools.StringTools; +import org.jboss.envers.tools.Tools; + +import org.hibernate.MappingException; +import org.hibernate.mapping.Collection; +import org.hibernate.mapping.IndexedCollection; +import org.hibernate.mapping.OneToMany; +import org.hibernate.mapping.PersistentClass; +import org.hibernate.mapping.Property; +import org.hibernate.mapping.Table; +import org.hibernate.mapping.ToOne; +import org.hibernate.mapping.Value; +import org.hibernate.type.BagType; +import org.hibernate.type.ListType; +import org.hibernate.type.ManyToOneType; +import org.hibernate.type.MapType; +import org.hibernate.type.SetType; +import org.hibernate.type.SortedMapType; +import org.hibernate.type.SortedSetType; +import org.hibernate.type.Type; /** * Generates metadata for a collection-valued property. diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/EntityXmlMappingData.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/EntityXmlMappingData.java index d8cb286dc5..04d69bb97d 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/EntityXmlMappingData.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/EntityXmlMappingData.java @@ -1,34 +1,34 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; +import java.util.ArrayList; +import java.util.List; + import org.dom4j.Document; import org.dom4j.DocumentHelper; -import java.util.List; -import java.util.ArrayList; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/IdMetadataGenerator.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/IdMetadataGenerator.java index 8fbf0deb63..202f373454 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/IdMetadataGenerator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/IdMetadataGenerator.java @@ -1,45 +1,46 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; +import java.util.Iterator; + import org.dom4j.Element; import org.dom4j.tree.DefaultElement; -import org.hibernate.mapping.Property; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.mapping.Component; -import org.hibernate.type.Type; -import org.hibernate.type.ImmutableType; -import org.hibernate.MappingException; -import org.jboss.envers.entities.mapper.SimpleMapperBuilder; -import org.jboss.envers.entities.mapper.id.SimpleIdMapperBuilder; -import org.jboss.envers.entities.mapper.id.MultipleIdMapper; -import org.jboss.envers.entities.mapper.id.EmbeddedIdMapper; -import org.jboss.envers.entities.mapper.id.SingleIdMapper; -import org.jboss.envers.entities.IdMappingData; import org.jboss.envers.ModificationStore; +import org.jboss.envers.entities.IdMappingData; +import org.jboss.envers.entities.mapper.SimpleMapperBuilder; +import org.jboss.envers.entities.mapper.id.EmbeddedIdMapper; +import org.jboss.envers.entities.mapper.id.MultipleIdMapper; +import org.jboss.envers.entities.mapper.id.SimpleIdMapperBuilder; +import org.jboss.envers.entities.mapper.id.SingleIdMapper; -import java.util.Iterator; +import org.hibernate.MappingException; +import org.hibernate.mapping.Component; +import org.hibernate.mapping.PersistentClass; +import org.hibernate.mapping.Property; +import org.hibernate.type.ImmutableType; +import org.hibernate.type.Type; /** * Generates metadata for primary identifiers (ids) of versions entities. diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/InheritanceType.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/InheritanceType.java index bb4a88ca62..b2c57213ca 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/InheritanceType.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/InheritanceType.java @@ -1,28 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.hibernate.mapping.*; import org.hibernate.MappingException; +import org.hibernate.mapping.JoinedSubclass; +import org.hibernate.mapping.PersistentClass; +import org.hibernate.mapping.SingleTableSubclass; +import org.hibernate.mapping.Subclass; +import org.hibernate.mapping.UnionSubclass; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/MetadataTools.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/MetadataTools.java index 2e7fd041ea..8823daf90a 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/MetadataTools.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/MetadataTools.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.dom4j.Element; -import org.dom4j.Document; -import org.dom4j.Attribute; -import org.jboss.envers.tools.StringTools; -import org.hibernate.mapping.Column; - -import javax.persistence.JoinColumn; import java.util.Iterator; +import javax.persistence.JoinColumn; + +import org.dom4j.Attribute; +import org.dom4j.Document; +import org.dom4j.Element; +import org.jboss.envers.tools.StringTools; + +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/PersistentClassVersioningData.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/PersistentClassVersioningData.java index fbea6737c7..8f8c10a95b 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/PersistentClassVersioningData.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/PersistentClassVersioningData.java @@ -1,35 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import org.jboss.envers.ModificationStore; import org.jboss.envers.VersionsJoinTable; import org.jboss.envers.VersionsTable; -import java.util.HashMap; -import java.util.Map; -import java.util.List; -import java.util.ArrayList; - /** * @author Adam Warski (adam at warski dot org) * @author Sebastian Komander diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/PropertyStoreInfo.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/PropertyStoreInfo.java index a2d78e7888..a7d8cff54f 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/PropertyStoreInfo.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/PropertyStoreInfo.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.jboss.envers.ModificationStore; - import java.util.Map; +import org.jboss.envers.ModificationStore; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/QueryGeneratorBuilder.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/QueryGeneratorBuilder.java index 0088bcf4f7..8241287afa 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/QueryGeneratorBuilder.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/QueryGeneratorBuilder.java @@ -1,39 +1,39 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import java.util.ArrayList; +import java.util.List; + +import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; import org.jboss.envers.entities.mapper.relation.query.OneEntityQueryGenerator; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; import org.jboss.envers.entities.mapper.relation.query.ThreeEntityQueryGenerator; import org.jboss.envers.entities.mapper.relation.query.TwoEntityQueryGenerator; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.GlobalConfiguration; - -import java.util.List; -import java.util.ArrayList; /** * Builds query generators, for reading collection middle tables, along with any related entities. diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/ToOneRelationMetadataGenerator.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/ToOneRelationMetadataGenerator.java index 740abd00ee..1c5531e625 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/ToOneRelationMetadataGenerator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/ToOneRelationMetadataGenerator.java @@ -1,39 +1,40 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; import org.dom4j.Element; -import org.hibernate.mapping.Value; -import org.hibernate.mapping.ToOne; -import org.hibernate.mapping.OneToOne; -import org.hibernate.MappingException; -import org.jboss.envers.entities.mapper.CompositeMapperBuilder; -import org.jboss.envers.entities.mapper.relation.ToOneIdMapper; -import org.jboss.envers.entities.mapper.relation.OneToOneNotOwningMapper; -import org.jboss.envers.entities.mapper.id.IdMapper; import org.jboss.envers.entities.EntityConfiguration; import org.jboss.envers.entities.IdMappingData; +import org.jboss.envers.entities.mapper.CompositeMapperBuilder; +import org.jboss.envers.entities.mapper.id.IdMapper; +import org.jboss.envers.entities.mapper.relation.OneToOneNotOwningMapper; +import org.jboss.envers.entities.mapper.relation.ToOneIdMapper; + +import org.hibernate.MappingException; +import org.hibernate.mapping.OneToOne; +import org.hibernate.mapping.ToOne; +import org.hibernate.mapping.Value; /** * Generates metadata for to-one relations (reference-valued properties). diff --git a/envers/src/main/java/org/jboss/envers/configuration/metadata/VersionsMetadataGenerator.java b/envers/src/main/java/org/jboss/envers/configuration/metadata/VersionsMetadataGenerator.java index 16a85e7e9b..83f53e074f 100644 --- a/envers/src/main/java/org/jboss/envers/configuration/metadata/VersionsMetadataGenerator.java +++ b/envers/src/main/java/org/jboss/envers/configuration/metadata/VersionsMetadataGenerator.java @@ -1,47 +1,60 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.configuration.metadata; -import org.hibernate.type.*; -import org.hibernate.MappingException; -import org.hibernate.cfg.Configuration; -import org.hibernate.mapping.*; -import org.hibernate.mapping.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + import org.dom4j.Element; -import org.jboss.envers.entities.EntityConfiguration; -import org.jboss.envers.entities.IdMappingData; -import org.jboss.envers.configuration.GlobalConfiguration; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.entities.mapper.*; -import org.jboss.envers.tools.StringTools; import org.jboss.envers.ModificationStore; import org.jboss.envers.VersionsJoinTable; +import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.EntityConfiguration; +import org.jboss.envers.entities.IdMappingData; +import org.jboss.envers.entities.mapper.CompositeMapperBuilder; +import org.jboss.envers.entities.mapper.ExtendedPropertyMapper; +import org.jboss.envers.entities.mapper.MultiPropertyMapper; +import org.jboss.envers.entities.mapper.SubclassPropertyMapper; import org.jboss.envers.entity.VersionsInheritanceEntityPersister; +import org.jboss.envers.tools.StringTools; import org.jboss.envers.tools.log.YLog; import org.jboss.envers.tools.log.YLogManager; -import java.util.*; -import java.util.List; -import java.util.Map; +import org.hibernate.MappingException; +import org.hibernate.cfg.Configuration; +import org.hibernate.mapping.Collection; +import org.hibernate.mapping.Join; +import org.hibernate.mapping.PersistentClass; +import org.hibernate.mapping.Property; +import org.hibernate.mapping.Value; +import org.hibernate.type.CollectionType; +import org.hibernate.type.ManyToOneType; +import org.hibernate.type.OneToOneType; +import org.hibernate.type.Type; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/EntitiesConfigurations.java b/envers/src/main/java/org/jboss/envers/entities/EntitiesConfigurations.java index 8e8b380182..37f471e120 100644 --- a/envers/src/main/java/org/jboss/envers/entities/EntitiesConfigurations.java +++ b/envers/src/main/java/org/jboss/envers/entities/EntitiesConfigurations.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; -import java.util.Map; import java.util.HashMap; +import java.util.Map; /** * Configuration of the user entities: property mapping of the entities, relations, inheritance. diff --git a/envers/src/main/java/org/jboss/envers/entities/EntityConfiguration.java b/envers/src/main/java/org/jboss/envers/entities/EntityConfiguration.java index dad0859439..30e02162b7 100644 --- a/envers/src/main/java/org/jboss/envers/entities/EntityConfiguration.java +++ b/envers/src/main/java/org/jboss/envers/entities/EntityConfiguration.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; +import java.util.HashMap; +import java.util.Map; + import org.jboss.envers.entities.mapper.ExtendedPropertyMapper; import org.jboss.envers.entities.mapper.id.IdMapper; -import java.util.Map; -import java.util.HashMap; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/EntityInstantiator.java b/envers/src/main/java/org/jboss/envers/entities/EntityInstantiator.java index 0cb47cb1ae..f428659288 100644 --- a/envers/src/main/java/org/jboss/envers/entities/EntityInstantiator.java +++ b/envers/src/main/java/org/jboss/envers/entities/EntityInstantiator.java @@ -1,36 +1,38 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; -import org.jboss.envers.exception.VersionsException; +import java.util.Collection; +import java.util.List; +import java.util.Map; + import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.mapper.id.IdMapper; +import org.jboss.envers.exception.VersionsException; import org.jboss.envers.reader.VersionsReaderImplementor; import org.jboss.envers.tools.reflection.ReflectionTools; -import java.util.Map; -import java.util.List; -import java.util.Collection; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/IdMappingData.java b/envers/src/main/java/org/jboss/envers/entities/IdMappingData.java index 43c2df3058..0fa1a214ab 100644 --- a/envers/src/main/java/org/jboss/envers/entities/IdMappingData.java +++ b/envers/src/main/java/org/jboss/envers/entities/IdMappingData.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; -import org.jboss.envers.entities.mapper.id.IdMapper; import org.dom4j.Element; +import org.jboss.envers.entities.mapper.id.IdMapper; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/RelationDescription.java b/envers/src/main/java/org/jboss/envers/entities/RelationDescription.java index c48f88be48..079cfab04d 100644 --- a/envers/src/main/java/org/jboss/envers/entities/RelationDescription.java +++ b/envers/src/main/java/org/jboss/envers/entities/RelationDescription.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; diff --git a/envers/src/main/java/org/jboss/envers/entities/RelationType.java b/envers/src/main/java/org/jboss/envers/entities/RelationType.java index 5f59a1d2cd..60a11362ad 100644 --- a/envers/src/main/java/org/jboss/envers/entities/RelationType.java +++ b/envers/src/main/java/org/jboss/envers/entities/RelationType.java @@ -1,25 +1,25 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; diff --git a/envers/src/main/java/org/jboss/envers/entities/RevisionTypeType.java b/envers/src/main/java/org/jboss/envers/entities/RevisionTypeType.java index 7d9e6fff44..1504d3e79a 100644 --- a/envers/src/main/java/org/jboss/envers/entities/RevisionTypeType.java +++ b/envers/src/main/java/org/jboss/envers/entities/RevisionTypeType.java @@ -1,37 +1,38 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities; -import org.hibernate.usertype.UserType; -import org.hibernate.HibernateException; +import java.io.Serializable; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Types; + import org.jboss.envers.RevisionType; -import java.sql.ResultSet; -import java.sql.Types; -import java.sql.SQLException; -import java.sql.PreparedStatement; -import java.io.Serializable; +import org.hibernate.HibernateException; +import org.hibernate.usertype.UserType; /** * A hibernate type for the {@link RevisionType} enum. diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/CompositeMapperBuilder.java b/envers/src/main/java/org/jboss/envers/entities/mapper/CompositeMapperBuilder.java index 95caf9e948..13577f37bd 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/CompositeMapperBuilder.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/CompositeMapperBuilder.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/ExtendedPropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/ExtendedPropertyMapper.java index 6549f031af..bca266eb5b 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/ExtendedPropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/ExtendedPropertyMapper.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/MapPropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/MapPropertyMapper.java index a452f34c44..ebfb83aa27 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/MapPropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/MapPropertyMapper.java @@ -1,40 +1,43 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; +import java.io.Serializable; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import org.jboss.envers.ModificationStore; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.reflection.ReflectionTools; -import org.jboss.envers.reader.VersionsReaderImplementor; import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.reflection.ReflectionTools; + +import org.hibernate.collection.PersistentCollection; import org.hibernate.property.Getter; import org.hibernate.property.Setter; import org.hibernate.util.ReflectHelper; -import org.hibernate.collection.PersistentCollection; - -import java.util.Map; -import java.util.HashMap; -import java.util.List; -import java.io.Serializable; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/MultiPropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/MultiPropertyMapper.java index e1e0ea1549..adde5766a1 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/MultiPropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/MultiPropertyMapper.java @@ -1,38 +1,41 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; -import org.hibernate.property.Getter; -import org.hibernate.MappingException; -import org.hibernate.collection.PersistentCollection; -import org.jboss.envers.ModificationStore; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.reflection.ReflectionTools; -import org.jboss.envers.reader.VersionsReaderImplementor; - -import java.util.Map; +import java.io.Serializable; import java.util.HashMap; import java.util.List; -import java.io.Serializable; +import java.util.Map; + +import org.jboss.envers.ModificationStore; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.reflection.ReflectionTools; + +import org.hibernate.MappingException; +import org.hibernate.collection.PersistentCollection; +import org.hibernate.property.Getter; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/PersistentCollectionChangeData.java b/envers/src/main/java/org/jboss/envers/entities/mapper/PersistentCollectionChangeData.java index cd29290bf2..d4fa031a1d 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/PersistentCollectionChangeData.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/PersistentCollectionChangeData.java @@ -1,25 +1,25 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/PropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/PropertyMapper.java index 02dfeaa447..7e0a337dc6 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/PropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/PropertyMapper.java @@ -1,33 +1,36 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.hibernate.collection.PersistentCollection; - -import java.util.Map; -import java.util.List; import java.io.Serializable; +import java.util.List; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.reader.VersionsReaderImplementor; + +import org.hibernate.collection.PersistentCollection; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/SimpleMapperBuilder.java b/envers/src/main/java/org/jboss/envers/entities/mapper/SimpleMapperBuilder.java index e631575bcc..5794192eef 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/SimpleMapperBuilder.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/SimpleMapperBuilder.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/SinglePropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/SinglePropertyMapper.java index 8e239d84cd..af0e167c0b 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/SinglePropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/SinglePropertyMapper.java @@ -1,38 +1,41 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; +import java.io.Serializable; +import java.util.List; +import java.util.Map; + import org.jboss.envers.ModificationStore; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.reflection.ReflectionTools; +import org.jboss.envers.exception.VersionsException; import org.jboss.envers.reader.VersionsReaderImplementor; import org.jboss.envers.tools.Tools; -import org.jboss.envers.exception.VersionsException; -import org.hibernate.property.Setter; -import org.hibernate.collection.PersistentCollection; +import org.jboss.envers.tools.reflection.ReflectionTools; -import java.util.Map; -import java.util.List; -import java.io.Serializable; +import org.hibernate.collection.PersistentCollection; +import org.hibernate.property.Setter; /** * TODO: diff diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/SubclassPropertyMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/SubclassPropertyMapper.java index 86cb74f06f..5c59332a1e 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/SubclassPropertyMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/SubclassPropertyMapper.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper; -import org.jboss.envers.reader.VersionsReaderImplementor; +import java.io.Serializable; +import java.util.List; +import java.util.Map; + import org.jboss.envers.ModificationStore; import org.jboss.envers.configuration.VersionsConfiguration; -import org.hibernate.collection.PersistentCollection; +import org.jboss.envers.reader.VersionsReaderImplementor; -import java.util.Map; -import java.util.List; -import java.io.Serializable; +import org.hibernate.collection.PersistentCollection; /** * A mapper which maps from a parent mapper and a "main" one, but adds only to the "main". The "main" mapper diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractCompositeIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractCompositeIdMapper.java index a873da099a..2c658fe0fd 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractCompositeIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractCompositeIdMapper.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; +import java.util.LinkedHashMap; +import java.util.Map; + import org.jboss.envers.ModificationStore; import org.jboss.envers.exception.VersionsException; -import java.util.Map; -import java.util.LinkedHashMap; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractIdMapper.java index a9aaf8d509..d42fdb06a9 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/AbstractIdMapper.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; -import org.jboss.envers.tools.query.Parameters; - import java.util.Iterator; import java.util.List; +import org.jboss.envers.tools.query.Parameters; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/EmbeddedIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/EmbeddedIdMapper.java index e677c9bfa9..50a6527543 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/EmbeddedIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/EmbeddedIdMapper.java @@ -1,33 +1,39 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.tools.reflection.ReflectionTools; + import org.hibernate.property.Getter; import org.hibernate.property.Setter; import org.hibernate.util.ReflectHelper; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.tools.reflection.ReflectionTools; - -import java.util.*; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/IdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/IdMapper.java index 8838a50c5d..0f676c700d 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/IdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/IdMapper.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; -import org.jboss.envers.tools.query.Parameters; - -import java.util.Map; import java.util.List; +import java.util.Map; + +import org.jboss.envers.tools.query.Parameters; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/MultipleIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/MultipleIdMapper.java index 73d6ffaec7..9ad04ed479 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/MultipleIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/MultipleIdMapper.java @@ -1,29 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; -import org.jboss.envers.exception.VersionsException; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.exception.VersionsException; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/QueryParameterData.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/QueryParameterData.java index 77c9457e6e..53c41b9c2d 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/QueryParameterData.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/QueryParameterData.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/SimpleIdMapperBuilder.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/SimpleIdMapperBuilder.java index cc754ca229..1265b659e1 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/SimpleIdMapperBuilder.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/SimpleIdMapperBuilder.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/id/SingleIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/id/SingleIdMapper.java index 19b693de91..9ba0258329 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/id/SingleIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/id/SingleIdMapper.java @@ -1,33 +1,38 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.id; -import org.jboss.envers.ModificationStore; -import org.jboss.envers.tools.reflection.ReflectionTools; -import org.jboss.envers.exception.VersionsException; -import org.hibernate.property.Setter; -import org.hibernate.property.Getter; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.ModificationStore; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.tools.reflection.ReflectionTools; + +import org.hibernate.property.Getter; +import org.hibernate.property.Setter; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/AbstractCollectionMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/AbstractCollectionMapper.java index bf4d6d5ce8..3c17952495 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/AbstractCollectionMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/AbstractCollectionMapper.java @@ -1,44 +1,51 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; +import java.io.Serializable; +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; import org.jboss.envers.entities.mapper.PropertyMapper; import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; -import org.jboss.envers.RevisionType; import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.tools.reflection.ReflectionTools; import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.tools.reflection.ReflectionTools; + import org.hibernate.collection.PersistentCollection; import org.hibernate.property.Setter; -import java.util.*; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Constructor; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/BasicCollectionMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/BasicCollectionMapper.java index b374e69681..71c38df892 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/BasicCollectionMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/BasicCollectionMapper.java @@ -1,38 +1,39 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; -import org.jboss.envers.entities.mapper.PropertyMapper; -import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; -import org.jboss.envers.entities.mapper.relation.lazy.initializor.BasicCollectionInitializor; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.hibernate.collection.PersistentCollection; - -import java.util.Map; -import java.util.Collection; import java.io.Serializable; +import java.util.Collection; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.PropertyMapper; +import org.jboss.envers.entities.mapper.relation.lazy.initializor.BasicCollectionInitializor; +import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; +import org.jboss.envers.reader.VersionsReaderImplementor; + +import org.hibernate.collection.PersistentCollection; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/CommonCollectionMapperData.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/CommonCollectionMapperData.java index 2ad682f6fe..ddbb27d033 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/CommonCollectionMapperData.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/CommonCollectionMapperData.java @@ -1,25 +1,25 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ListCollectionMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ListCollectionMapper.java index 709cbd579f..01986f869b 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ListCollectionMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ListCollectionMapper.java @@ -1,42 +1,43 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; +import java.io.Serializable; +import java.util.Collection; +import java.util.List; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.mapper.PropertyMapper; import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; import org.jboss.envers.entities.mapper.relation.lazy.initializor.ListCollectionInitializor; import org.jboss.envers.entities.mapper.relation.lazy.proxy.ListProxy; -import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.tools.Tools; import org.jboss.envers.tools.Pair; -import org.hibernate.collection.PersistentCollection; +import org.jboss.envers.tools.Tools; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.io.Serializable; +import org.hibernate.collection.PersistentCollection; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MapCollectionMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MapCollectionMapper.java index 9fb3fc9a1a..86ddf76294 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MapCollectionMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MapCollectionMapper.java @@ -1,38 +1,39 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; +import java.io.Serializable; +import java.util.Collection; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.mapper.PropertyMapper; import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; import org.jboss.envers.entities.mapper.relation.lazy.initializor.MapCollectionInitializor; -import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.reader.VersionsReaderImplementor; -import org.hibernate.collection.PersistentCollection; -import java.util.Map; -import java.util.Collection; -import java.io.Serializable; +import org.hibernate.collection.PersistentCollection; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleComponentData.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleComponentData.java index 08f2b8fbed..2a091e39a7 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleComponentData.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleComponentData.java @@ -1,25 +1,25 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleIdData.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleIdData.java index ca5d615256..f5a22e0dff 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleIdData.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/MiddleIdData.java @@ -1,31 +1,31 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; -import org.jboss.envers.entities.mapper.id.IdMapper; -import org.jboss.envers.entities.IdMappingData; import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.IdMappingData; +import org.jboss.envers.entities.mapper.id.IdMapper; /** * A class holding information about ids, which form a virtual "relation" from a middle-table. Middle-tables are used diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/OneToOneNotOwningMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/OneToOneNotOwningMapper.java index 0d480ae51b..96234f8e00 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/OneToOneNotOwningMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/OneToOneNotOwningMapper.java @@ -1,41 +1,44 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; -import org.jboss.envers.entities.mapper.PropertyMapper; +import java.io.Serializable; +import java.util.List; +import java.util.Map; +import javax.persistence.NoResultException; + +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; +import org.jboss.envers.entities.mapper.PropertyMapper; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.reader.VersionsReaderImplementor; import org.jboss.envers.tools.reflection.ReflectionTools; -import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.hibernate.property.Setter; + import org.hibernate.NonUniqueResultException; import org.hibernate.collection.PersistentCollection; - -import javax.persistence.NoResultException; -import java.util.Map; -import java.util.List; -import java.io.Serializable; +import org.hibernate.property.Setter; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ToOneIdMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ToOneIdMapper.java index 153a56a008..29fe2eeee4 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ToOneIdMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/ToOneIdMapper.java @@ -1,41 +1,44 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation; -import org.jboss.envers.entities.mapper.PropertyMapper; -import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; -import org.jboss.envers.entities.mapper.id.IdMapper; -import org.jboss.envers.tools.Tools; -import org.jboss.envers.tools.reflection.ReflectionTools; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.entities.mapper.relation.lazy.ToOneDelegateSessionImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.hibernate.property.Setter; -import org.hibernate.collection.PersistentCollection; - -import java.util.Map; +import java.io.Serializable; import java.util.HashMap; import java.util.List; -import java.io.Serializable; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; +import org.jboss.envers.entities.mapper.PropertyMapper; +import org.jboss.envers.entities.mapper.id.IdMapper; +import org.jboss.envers.entities.mapper.relation.lazy.ToOneDelegateSessionImplementor; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.Tools; +import org.jboss.envers.tools.reflection.ReflectionTools; + +import org.hibernate.collection.PersistentCollection; +import org.hibernate.property.Setter; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleComponentMapper.java index ee12cea097..616e9a0309 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleComponentMapper.java @@ -1,33 +1,33 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; +import java.util.Map; + import org.jboss.envers.entities.EntityInstantiator; import org.jboss.envers.tools.query.Parameters; -import java.util.Map; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleDummyComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleDummyComponentMapper.java index 33508225d9..fea6aed95e 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleDummyComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleDummyComponentMapper.java @@ -1,33 +1,33 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; +import java.util.Map; + import org.jboss.envers.entities.EntityInstantiator; import org.jboss.envers.tools.query.Parameters; -import java.util.Map; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyIdComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyIdComponentMapper.java index 628e9f50bb..7ad87709dd 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyIdComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyIdComponentMapper.java @@ -1,34 +1,34 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; +import java.util.Map; + +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; import org.jboss.envers.entities.EntityInstantiator; import org.jboss.envers.entities.mapper.id.IdMapper; import org.jboss.envers.tools.query.Parameters; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; - -import java.util.Map; /** * A component mapper for the @MapKey mapping: the value of the map's key is the id of the entity. This diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyPropertyComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyPropertyComponentMapper.java index 98ede71efd..cbcd295720 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyPropertyComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleMapKeyPropertyComponentMapper.java @@ -1,34 +1,34 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; +import java.util.Map; + import org.jboss.envers.entities.EntityInstantiator; import org.jboss.envers.tools.query.Parameters; import org.jboss.envers.tools.reflection.ReflectionTools; -import java.util.Map; - /** * A component mapper for the @MapKey mapping with the name parameter specified: the value of the map's key * is a property of the entity. This doesn't have an effect on the data stored in the versions tables, diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleRelatedComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleRelatedComponentMapper.java index 008f6d9190..809258b1c9 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleRelatedComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleRelatedComponentMapper.java @@ -1,34 +1,34 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; +import java.util.Map; + import org.jboss.envers.entities.EntityInstantiator; import org.jboss.envers.entities.mapper.relation.MiddleIdData; import org.jboss.envers.tools.query.Parameters; -import java.util.Map; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleSimpleComponentMapper.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleSimpleComponentMapper.java index 4a6f90201f..954eb122bf 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleSimpleComponentMapper.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/component/MiddleSimpleComponentMapper.java @@ -1,34 +1,34 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.component; -import org.jboss.envers.entities.EntityInstantiator; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.tools.query.Parameters; - import java.util.Map; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.EntityInstantiator; +import org.jboss.envers.tools.query.Parameters; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java index e23e536e27..57ff112c34 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/AbstractDelegateSessionImplementor.java @@ -1,43 +1,58 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy; -import org.hibernate.engine.*; +import java.io.Serializable; +import java.sql.Connection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import org.hibernate.CacheMode; +import org.hibernate.EntityMode; +import org.hibernate.FlushMode; +import org.hibernate.HibernateException; +import org.hibernate.Interceptor; +import org.hibernate.Query; +import org.hibernate.ScrollMode; +import org.hibernate.ScrollableResults; +import org.hibernate.Transaction; +import org.hibernate.collection.PersistentCollection; +import org.hibernate.engine.EntityKey; +import org.hibernate.engine.LoadQueryInfluencers; +import org.hibernate.engine.PersistenceContext; +import org.hibernate.engine.QueryParameters; +import org.hibernate.engine.SessionFactoryImplementor; +import org.hibernate.engine.SessionImplementor; import org.hibernate.engine.query.sql.NativeSQLQuerySpecification; -import org.hibernate.*; import org.hibernate.event.EventListeners; -import org.hibernate.type.Type; -import org.hibernate.loader.custom.CustomQuery; -import org.hibernate.persister.entity.EntityPersister; import org.hibernate.impl.CriteriaImpl; import org.hibernate.jdbc.Batcher; import org.hibernate.jdbc.JDBCContext; -import org.hibernate.collection.PersistentCollection; - -import java.io.Serializable; -import java.util.List; -import java.util.Iterator; -import java.util.Map; -import java.sql.Connection; +import org.hibernate.loader.custom.CustomQuery; +import org.hibernate.persister.entity.EntityPersister; +import org.hibernate.type.Type; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/ToOneDelegateSessionImplementor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/ToOneDelegateSessionImplementor.java index de4150cdf3..46efee80f4 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/ToOneDelegateSessionImplementor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/ToOneDelegateSessionImplementor.java @@ -1,29 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy; -import org.hibernate.HibernateException; import org.jboss.envers.reader.VersionsReaderImplementor; +import org.hibernate.HibernateException; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java index a6b79f7248..8a37b36c90 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java @@ -1,35 +1,35 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.EntityInstantiator; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; - import java.util.List; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.EntityInstantiator; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.reader.VersionsReaderImplementor; + /** * Initializes a persistent collection. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java index 674eea228b..ba8d2b6bde 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java @@ -1,34 +1,35 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.reader.VersionsReaderImplementor; /** * Initializes a map. diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java index e63f6dbb1e..a490267d30 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java @@ -1,35 +1,37 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.configuration.VersionsConfiguration; +import java.util.Collection; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.reader.VersionsReaderImplementor; /** * Initializes a non-indexed java collection (set or list, eventually sorted). diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/Initializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/Initializor.java index 0b7da7a8ca..5f95a425fe 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/Initializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/Initializor.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java index f9f2739a01..961f4a1649 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java @@ -1,34 +1,36 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.reader.VersionsReaderImplementor; /** * Initializes a map. diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java index 662721b20c..2d4558da1b 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java @@ -1,35 +1,36 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.initializor; -import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.configuration.VersionsConfiguration; +import java.util.List; +import java.util.Map; -import java.util.*; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.query.RelationQueryGenerator; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.reader.VersionsReaderImplementor; /** * Initializes a map. diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java index 1b0f3eb123..a84ae62efe 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; -import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; - import java.util.Collection; import java.util.Iterator; +import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/ListProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/ListProxy.java index cfb597d029..86f15d6893 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/ListProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/ListProxy.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; -import java.util.List; import java.util.Collection; +import java.util.List; import java.util.ListIterator; /** diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/MapProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/MapProxy.java index 87929e76e7..329f5ff833 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/MapProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/MapProxy.java @@ -1,33 +1,33 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; -import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; - +import java.util.Collection; import java.util.Map; import java.util.Set; -import java.util.Collection; + +import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SetProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SetProxy.java index deca75e83c..ad87a237fd 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SetProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SetProxy.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java index e600ad2639..96257ba853 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java @@ -1,31 +1,35 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; -import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; +import java.util.Collection; +import java.util.Comparator; +import java.util.Map; +import java.util.Set; +import java.util.SortedMap; -import java.util.*; +import org.jboss.envers.entities.mapper.relation.lazy.initializor.Initializor; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java index d1f5ad3376..5e0660ebd4 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java @@ -1,30 +1,30 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.lazy.proxy; -import java.util.SortedSet; import java.util.Comparator; +import java.util.SortedSet; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneEntityQueryGenerator.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneEntityQueryGenerator.java index c0ed41c7d5..9a8b7124d1 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneEntityQueryGenerator.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneEntityQueryGenerator.java @@ -1,40 +1,41 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.entities.mapper.id.QueryParameterData; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.RevisionType; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; -import org.hibernate.Query; - import java.util.Collections; +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.mapper.id.QueryParameterData; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; + +import org.hibernate.Query; + /** * Selects data from a relation middle-table only. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneVersionsEntityQueryGenerator.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneVersionsEntityQueryGenerator.java index f8fb76a6ac..af73ea2de6 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneVersionsEntityQueryGenerator.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/OneVersionsEntityQueryGenerator.java @@ -1,41 +1,42 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.jboss.envers.entities.mapper.id.QueryParameterData; -import org.jboss.envers.entities.mapper.id.IdMapper; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.GlobalConfiguration; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.RevisionType; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; -import org.hibernate.Query; - import java.util.Collections; +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.mapper.id.IdMapper; +import org.jboss.envers.entities.mapper.id.QueryParameterData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; + +import org.hibernate.Query; + /** * Selects data from a versions entity. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/QueryGeneratorTools.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/QueryGeneratorTools.java index 46095bb6bc..6a9d2b36eb 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/QueryGeneratorTools.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/QueryGeneratorTools.java @@ -1,33 +1,33 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/RelationQueryGenerator.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/RelationQueryGenerator.java index a5b41f5ac1..557e499117 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/RelationQueryGenerator.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/RelationQueryGenerator.java @@ -1,31 +1,32 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.hibernate.Query; import org.jboss.envers.reader.VersionsReaderImplementor; +import org.hibernate.Query; + /** * Implementations of this interface provide a method to generate queries on a relation table (a table used * for mapping relations). The query can select, apart from selecting the content of the relation table, also data of diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/ThreeEntityQueryGenerator.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/ThreeEntityQueryGenerator.java index d06cdac738..4ce4067d5b 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/ThreeEntityQueryGenerator.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/ThreeEntityQueryGenerator.java @@ -1,41 +1,42 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.jboss.envers.entities.mapper.id.QueryParameterData; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.GlobalConfiguration; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.RevisionType; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; -import org.hibernate.Query; - import java.util.Collections; +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.mapper.id.QueryParameterData; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; + +import org.hibernate.Query; + /** * Selects data from a relation middle-table and a two related versions entity. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/TwoEntityQueryGenerator.java b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/TwoEntityQueryGenerator.java index d582a4ca97..9526eb928f 100644 --- a/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/TwoEntityQueryGenerator.java +++ b/envers/src/main/java/org/jboss/envers/entities/mapper/relation/query/TwoEntityQueryGenerator.java @@ -1,41 +1,42 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entities.mapper.relation.query; -import org.jboss.envers.entities.mapper.id.QueryParameterData; -import org.jboss.envers.entities.mapper.relation.MiddleIdData; -import org.jboss.envers.entities.mapper.relation.MiddleComponentData; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.GlobalConfiguration; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.RevisionType; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; -import org.hibernate.Query; - import java.util.Collections; +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.GlobalConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.mapper.id.QueryParameterData; +import org.jboss.envers.entities.mapper.relation.MiddleComponentData; +import org.jboss.envers.entities.mapper.relation.MiddleIdData; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; + +import org.hibernate.Query; + /** * Selects data from a relation middle-table and a related versions entity. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/entity/VersionsInheritanceEntityPersister.java b/envers/src/main/java/org/jboss/envers/entity/VersionsInheritanceEntityPersister.java index fb37dcc098..34e55f260d 100644 --- a/envers/src/main/java/org/jboss/envers/entity/VersionsInheritanceEntityPersister.java +++ b/envers/src/main/java/org/jboss/envers/entity/VersionsInheritanceEntityPersister.java @@ -1,34 +1,36 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.entity; -import org.hibernate.persister.entity.SingleTableEntityPersister; -import org.hibernate.persister.entity.EntityPersister; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.cache.access.EntityRegionAccessStrategy; -import org.hibernate.engine.SessionFactoryImplementor; -import org.hibernate.engine.Mapping; -import org.hibernate.HibernateException; import org.hibernate.EntityMode; +import org.hibernate.HibernateException; +import org.hibernate.cache.access.EntityRegionAccessStrategy; +import org.hibernate.engine.Mapping; +import org.hibernate.engine.SessionFactoryImplementor; +import org.hibernate.mapping.PersistentClass; +import org.hibernate.persister.entity.EntityPersister; +import org.hibernate.persister.entity.SingleTableEntityPersister; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/event/VersionsEventListener.java b/envers/src/main/java/org/jboss/envers/event/VersionsEventListener.java index 9b66a348e5..acb0f72ff7 100644 --- a/envers/src/main/java/org/jboss/envers/event/VersionsEventListener.java +++ b/envers/src/main/java/org/jboss/envers/event/VersionsEventListener.java @@ -1,41 +1,61 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.event; -import org.hibernate.event.*; -import org.hibernate.cfg.Configuration; -import org.hibernate.persister.entity.EntityPersister; -import org.hibernate.engine.CollectionEntry; -import org.hibernate.collection.PersistentCollection; +import java.io.Serializable; + import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.entities.RelationType; -import org.jboss.envers.synchronization.VersionsSync; -import org.jboss.envers.synchronization.work.*; -import org.jboss.envers.tools.Tools; -import org.jboss.envers.entities.mapper.id.IdMapper; import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; +import org.jboss.envers.entities.mapper.id.IdMapper; +import org.jboss.envers.synchronization.VersionsSync; +import org.jboss.envers.synchronization.work.AddWorkUnit; +import org.jboss.envers.synchronization.work.CollectionChangeWorkUnit; +import org.jboss.envers.synchronization.work.DelWorkUnit; +import org.jboss.envers.synchronization.work.ModWorkUnit; +import org.jboss.envers.synchronization.work.PersistentCollectionChangeWorkUnit; +import org.jboss.envers.tools.Tools; -import java.io.Serializable; +import org.hibernate.cfg.Configuration; +import org.hibernate.collection.PersistentCollection; +import org.hibernate.engine.CollectionEntry; +import org.hibernate.event.AbstractCollectionEvent; +import org.hibernate.event.Initializable; +import org.hibernate.event.PostCollectionRecreateEvent; +import org.hibernate.event.PostCollectionRecreateEventListener; +import org.hibernate.event.PostDeleteEvent; +import org.hibernate.event.PostDeleteEventListener; +import org.hibernate.event.PostInsertEvent; +import org.hibernate.event.PostInsertEventListener; +import org.hibernate.event.PostUpdateEvent; +import org.hibernate.event.PostUpdateEventListener; +import org.hibernate.event.PreCollectionRemoveEvent; +import org.hibernate.event.PreCollectionRemoveEventListener; +import org.hibernate.event.PreCollectionUpdateEvent; +import org.hibernate.event.PreCollectionUpdateEventListener; +import org.hibernate.persister.entity.EntityPersister; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/exception/NotVersionedException.java b/envers/src/main/java/org/jboss/envers/exception/NotVersionedException.java index 8691635b0d..0941d72274 100644 --- a/envers/src/main/java/org/jboss/envers/exception/NotVersionedException.java +++ b/envers/src/main/java/org/jboss/envers/exception/NotVersionedException.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.exception; diff --git a/envers/src/main/java/org/jboss/envers/exception/RevisionDoesNotExistException.java b/envers/src/main/java/org/jboss/envers/exception/RevisionDoesNotExistException.java index 62749468bb..a98a9cc68a 100644 --- a/envers/src/main/java/org/jboss/envers/exception/RevisionDoesNotExistException.java +++ b/envers/src/main/java/org/jboss/envers/exception/RevisionDoesNotExistException.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.exception; diff --git a/envers/src/main/java/org/jboss/envers/exception/VersionsException.java b/envers/src/main/java/org/jboss/envers/exception/VersionsException.java index 80bc65d6e6..5c75f981b2 100644 --- a/envers/src/main/java/org/jboss/envers/exception/VersionsException.java +++ b/envers/src/main/java/org/jboss/envers/exception/VersionsException.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.exception; diff --git a/envers/src/main/java/org/jboss/envers/query/RevisionProperty.java b/envers/src/main/java/org/jboss/envers/query/RevisionProperty.java index 60f10a5ff6..6d526c23b5 100644 --- a/envers/src/main/java/org/jboss/envers/query/RevisionProperty.java +++ b/envers/src/main/java/org/jboss/envers/query/RevisionProperty.java @@ -1,33 +1,35 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query; -import org.jboss.envers.query.criteria.VersionsCriterion; -import org.jboss.envers.query.criteria.RevisionVersionsExpression; -import org.jboss.envers.query.order.VersionsOrder; -import org.jboss.envers.query.order.RevisionVersionsOrder; -import org.jboss.envers.query.projection.VersionsProjection; -import org.jboss.envers.query.projection.RevisionVersionsProjection; import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.query.criteria.RevisionVersionsExpression; +import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.query.order.RevisionVersionsOrder; +import org.jboss.envers.query.order.VersionsOrder; +import org.jboss.envers.query.projection.RevisionVersionsProjection; +import org.jboss.envers.query.projection.VersionsProjection; import org.jboss.envers.tools.Triple; /** diff --git a/envers/src/main/java/org/jboss/envers/query/RevisionTypeProperty.java b/envers/src/main/java/org/jboss/envers/query/RevisionTypeProperty.java index 2e1f893c73..5b2ecb6424 100644 --- a/envers/src/main/java/org/jboss/envers/query/RevisionTypeProperty.java +++ b/envers/src/main/java/org/jboss/envers/query/RevisionTypeProperty.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query; -import org.jboss.envers.query.projection.VersionsProjection; import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.query.projection.VersionsProjection; import org.jboss.envers.tools.Triple; /** diff --git a/envers/src/main/java/org/jboss/envers/query/VersionsQuery.java b/envers/src/main/java/org/jboss/envers/query/VersionsQuery.java index 231e0dcdbc..9caa05c7a1 100644 --- a/envers/src/main/java/org/jboss/envers/query/VersionsQuery.java +++ b/envers/src/main/java/org/jboss/envers/query/VersionsQuery.java @@ -1,37 +1,40 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query; -import org.jboss.envers.query.criteria.VersionsCriterion; -import org.jboss.envers.query.projection.VersionsProjection; -import org.jboss.envers.query.order.VersionsOrder; -import org.jboss.envers.exception.VersionsException; -import org.hibernate.FlushMode; -import org.hibernate.CacheMode; -import org.hibernate.LockMode; - -import javax.persistence.NonUniqueResultException; -import javax.persistence.NoResultException; import java.util.List; +import javax.persistence.NoResultException; +import javax.persistence.NonUniqueResultException; + +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.query.order.VersionsOrder; +import org.jboss.envers.query.projection.VersionsProjection; + +import org.hibernate.CacheMode; +import org.hibernate.FlushMode; +import org.hibernate.LockMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/VersionsQueryCreator.java b/envers/src/main/java/org/jboss/envers/query/VersionsQueryCreator.java index 3113ccf273..945e659bf0 100644 --- a/envers/src/main/java/org/jboss/envers/query/VersionsQueryCreator.java +++ b/envers/src/main/java/org/jboss/envers/query/VersionsQueryCreator.java @@ -1,31 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query; -import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.query.impl.EntitiesAtRevisionQuery; import org.jboss.envers.query.impl.RevisionsOfEntityQuery; -import static org.jboss.envers.tools.ArgumentsTools.*; -import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.reader.VersionsReaderImplementor; +import static org.jboss.envers.tools.ArgumentsTools.checkNotNull; +import static org.jboss.envers.tools.ArgumentsTools.checkPositive; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/VersionsRestrictions.java b/envers/src/main/java/org/jboss/envers/query/VersionsRestrictions.java index 198390cd79..bfd2a6fd71 100644 --- a/envers/src/main/java/org/jboss/envers/query/VersionsRestrictions.java +++ b/envers/src/main/java/org/jboss/envers/query/VersionsRestrictions.java @@ -1,31 +1,47 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query; -import org.jboss.envers.query.criteria.*; -import org.hibernate.criterion.MatchMode; - import java.util.Collection; +import org.jboss.envers.query.criteria.AggregatedFieldVersionsExpression; +import org.jboss.envers.query.criteria.BetweenVersionsExpression; +import org.jboss.envers.query.criteria.IdentifierEqVersionsExpression; +import org.jboss.envers.query.criteria.InVersionsExpression; +import org.jboss.envers.query.criteria.LogicalVersionsExpression; +import org.jboss.envers.query.criteria.NotNullVersionsExpression; +import org.jboss.envers.query.criteria.NotVersionsExpression; +import org.jboss.envers.query.criteria.NullVersionsExpression; +import org.jboss.envers.query.criteria.PropertyVersionsExpression; +import org.jboss.envers.query.criteria.RelatedVersionsExpression; +import org.jboss.envers.query.criteria.SimpleVersionsExpression; +import org.jboss.envers.query.criteria.VersionsConjunction; +import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.query.criteria.VersionsDisjunction; + +import org.hibernate.criterion.MatchMode; + /** * TODO: ilike * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/AggregatedFieldVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/AggregatedFieldVersionsExpression.java index 71f77fcb4d..6328525199 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/AggregatedFieldVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/AggregatedFieldVersionsExpression.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; - -import java.util.List; import java.util.ArrayList; +import java.util.List; + +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/BetweenVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/BetweenVersionsExpression.java index 9c40e56eb6..3686c6bf72 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/BetweenVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/BetweenVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/CriteriaTools.java b/envers/src/main/java/org/jboss/envers/query/criteria/CriteriaTools.java index 1dce550386..c460fec430 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/CriteriaTools.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/CriteriaTools.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.entities.RelationType; -import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.exception.VersionsException; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/ExtendableCriterion.java b/envers/src/main/java/org/jboss/envers/query/criteria/ExtendableCriterion.java index f3961846df..0ddfde1dcf 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/ExtendableCriterion.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/ExtendableCriterion.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/IdentifierEqVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/IdentifierEqVersionsExpression.java index 7fc81fdb2a..ef07417aa7 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/IdentifierEqVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/IdentifierEqVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/InVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/InVersionsExpression.java index 1bf646514b..1c49e8fe87 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/InVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/InVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/LogicalVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/LogicalVersionsExpression.java index 03ca83fde5..4128498f64 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/LogicalVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/LogicalVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/NotNullVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/NotNullVersionsExpression.java index 52432cde67..604c9766d9 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/NotNullVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/NotNullVersionsExpression.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; +import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/NotVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/NotVersionsExpression.java index 0b49d78f7b..0b16a1d0d0 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/NotVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/NotVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/NullVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/NullVersionsExpression.java index 7188f9afc0..73e127ed96 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/NullVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/NullVersionsExpression.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; +import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/PropertyVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/PropertyVersionsExpression.java index e400ede376..5459acebe2 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/PropertyVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/PropertyVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/RelatedVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/RelatedVersionsExpression.java index 1eaea468ee..95c9977c30 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/RelatedVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/RelatedVersionsExpression.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; +import org.jboss.envers.entities.RelationDescription; +import org.jboss.envers.exception.VersionsException; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/RevisionVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/RevisionVersionsExpression.java index e0738d0b93..b44f39323b 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/RevisionVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/RevisionVersionsExpression.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/SimpleVersionsExpression.java b/envers/src/main/java/org/jboss/envers/query/criteria/SimpleVersionsExpression.java index a12c50c3fd..6cc1ab0bb8 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/SimpleVersionsExpression.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/SimpleVersionsExpression.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.entities.RelationDescription; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; +import org.jboss.envers.entities.RelationDescription; +import org.jboss.envers.exception.VersionsException; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsConjunction.java b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsConjunction.java index 7b8ec6f172..daed6e3cd1 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsConjunction.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsConjunction.java @@ -1,33 +1,35 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; - import java.util.ArrayList; import java.util.List; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsCriterion.java b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsCriterion.java index 919c85245b..99e4c82014 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsCriterion.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsCriterion.java @@ -1,29 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsDisjunction.java b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsDisjunction.java index 57278a55f5..c3439e7119 100644 --- a/envers/src/main/java/org/jboss/envers/query/criteria/VersionsDisjunction.java +++ b/envers/src/main/java/org/jboss/envers/query/criteria/VersionsDisjunction.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.criteria; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.tools.query.Parameters; - -import java.util.List; import java.util.ArrayList; +import java.util.List; + +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.tools.query.Parameters; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/impl/AbstractVersionsQuery.java b/envers/src/main/java/org/jboss/envers/query/impl/AbstractVersionsQuery.java index 0eb9913659..acbc16aefd 100644 --- a/envers/src/main/java/org/jboss/envers/query/impl/AbstractVersionsQuery.java +++ b/envers/src/main/java/org/jboss/envers/query/impl/AbstractVersionsQuery.java @@ -1,45 +1,51 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.impl; -import org.jboss.envers.reader.VersionsReaderImplementor; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.persistence.NoResultException; +import javax.persistence.NonUniqueResultException; + +import org.jboss.envers.configuration.VersionsConfiguration; import org.jboss.envers.entities.EntityInstantiator; -import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.exception.VersionsException; import org.jboss.envers.query.VersionsQuery; +import org.jboss.envers.query.criteria.VersionsCriterion; import org.jboss.envers.query.order.VersionsOrder; import org.jboss.envers.query.projection.VersionsProjection; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.reader.VersionsReaderImplementor; import org.jboss.envers.tools.Pair; import org.jboss.envers.tools.Triple; import org.jboss.envers.tools.query.QueryBuilder; -import org.hibernate.*; -import javax.persistence.NonUniqueResultException; -import javax.persistence.NoResultException; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; +import org.hibernate.CacheMode; +import org.hibernate.FlushMode; +import org.hibernate.LockMode; +import org.hibernate.Query; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/impl/EntitiesAtRevisionQuery.java b/envers/src/main/java/org/jboss/envers/query/impl/EntitiesAtRevisionQuery.java index 12fe3088ca..f04dc3ba04 100644 --- a/envers/src/main/java/org/jboss/envers/query/impl/EntitiesAtRevisionQuery.java +++ b/envers/src/main/java/org/jboss/envers/query/impl/EntitiesAtRevisionQuery.java @@ -1,35 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.impl; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.query.criteria.VersionsCriterion; -import org.jboss.envers.RevisionType; -import org.jboss.envers.tools.query.QueryBuilder; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.VersionsConfiguration; - -import java.util.List; import java.util.ArrayList; +import java.util.List; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.reader.VersionsReaderImplementor; +import org.jboss.envers.tools.query.QueryBuilder; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/query/impl/RevisionsOfEntityQuery.java b/envers/src/main/java/org/jboss/envers/query/impl/RevisionsOfEntityQuery.java index b1777d58d4..5c4940c5c9 100644 --- a/envers/src/main/java/org/jboss/envers/query/impl/RevisionsOfEntityQuery.java +++ b/envers/src/main/java/org/jboss/envers/query/impl/RevisionsOfEntityQuery.java @@ -1,38 +1,41 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.impl; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.reader.VersionsReaderImplementor; -import org.jboss.envers.query.criteria.VersionsCriterion; -import org.jboss.envers.RevisionType; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.hibernate.proxy.HibernateProxy; - -import java.util.List; import java.util.ArrayList; +import java.util.List; import java.util.Map; +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.query.criteria.VersionsCriterion; +import org.jboss.envers.reader.VersionsReaderImplementor; + +import org.hibernate.proxy.HibernateProxy; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/query/order/RevisionVersionsOrder.java b/envers/src/main/java/org/jboss/envers/query/order/RevisionVersionsOrder.java index efe5ef54c8..cb5ddaf886 100644 --- a/envers/src/main/java/org/jboss/envers/query/order/RevisionVersionsOrder.java +++ b/envers/src/main/java/org/jboss/envers/query/order/RevisionVersionsOrder.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.order; diff --git a/envers/src/main/java/org/jboss/envers/query/order/VersionsOrder.java b/envers/src/main/java/org/jboss/envers/query/order/VersionsOrder.java index cf6cdda606..1b85b5048d 100644 --- a/envers/src/main/java/org/jboss/envers/query/order/VersionsOrder.java +++ b/envers/src/main/java/org/jboss/envers/query/order/VersionsOrder.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.order; diff --git a/envers/src/main/java/org/jboss/envers/query/projection/RevisionVersionsProjection.java b/envers/src/main/java/org/jboss/envers/query/projection/RevisionVersionsProjection.java index 80e7371963..1735556a25 100644 --- a/envers/src/main/java/org/jboss/envers/query/projection/RevisionVersionsProjection.java +++ b/envers/src/main/java/org/jboss/envers/query/projection/RevisionVersionsProjection.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.projection; diff --git a/envers/src/main/java/org/jboss/envers/query/projection/VersionsProjection.java b/envers/src/main/java/org/jboss/envers/query/projection/VersionsProjection.java index bf67bd77f4..35537110ab 100644 --- a/envers/src/main/java/org/jboss/envers/query/projection/VersionsProjection.java +++ b/envers/src/main/java/org/jboss/envers/query/projection/VersionsProjection.java @@ -1,28 +1,29 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.query.projection; import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.tools.Pair; import org.jboss.envers.tools.Triple; /** diff --git a/envers/src/main/java/org/jboss/envers/reader/FirstLevelCache.java b/envers/src/main/java/org/jboss/envers/reader/FirstLevelCache.java index 48689f2804..dc274cbc27 100644 --- a/envers/src/main/java/org/jboss/envers/reader/FirstLevelCache.java +++ b/envers/src/main/java/org/jboss/envers/reader/FirstLevelCache.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.reader; -import org.jboss.envers.tools.Triple; -import static org.jboss.envers.tools.Triple.*; -import static org.jboss.envers.tools.Tools.newHashMap; - import java.util.Map; +import static org.jboss.envers.tools.Tools.newHashMap; +import org.jboss.envers.tools.Triple; +import static org.jboss.envers.tools.Triple.make; + /** * First level cache for versioned entities, versions reader-scoped. Each entity is uniquely identified by a * revision number and entity id. diff --git a/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImpl.java b/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImpl.java index ebc8842698..e94953bd8f 100644 --- a/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImpl.java +++ b/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImpl.java @@ -1,43 +1,46 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.reader; -import org.hibernate.NonUniqueResultException; -import org.hibernate.Session; -import org.hibernate.Query; -import org.hibernate.engine.SessionImplementor; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.exception.NotVersionedException; -import org.jboss.envers.exception.RevisionDoesNotExistException; - +import java.util.Date; +import java.util.List; import javax.persistence.NoResultException; -import static org.jboss.envers.tools.ArgumentsTools.*; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.exception.NotVersionedException; +import org.jboss.envers.exception.RevisionDoesNotExistException; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.query.RevisionProperty; import org.jboss.envers.query.VersionsQueryCreator; import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.query.RevisionProperty; +import static org.jboss.envers.tools.ArgumentsTools.checkNotNull; +import static org.jboss.envers.tools.ArgumentsTools.checkPositive; -import java.util.*; +import org.hibernate.NonUniqueResultException; +import org.hibernate.Query; +import org.hibernate.Session; +import org.hibernate.engine.SessionImplementor; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImplementor.java b/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImplementor.java index 8a370d2c5f..aa97d4383e 100644 --- a/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImplementor.java +++ b/envers/src/main/java/org/jboss/envers/reader/VersionsReaderImplementor.java @@ -1,30 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.reader; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.Session; import org.jboss.envers.VersionsReader; +import org.hibernate.Session; +import org.hibernate.engine.SessionImplementor; + /** * An interface exposed by a VersionsReader to library-facing classes. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/revisioninfo/DefaultRevisionInfoGenerator.java b/envers/src/main/java/org/jboss/envers/revisioninfo/DefaultRevisionInfoGenerator.java index 9e10a620ec..7d7c8c1bdf 100644 --- a/envers/src/main/java/org/jboss/envers/revisioninfo/DefaultRevisionInfoGenerator.java +++ b/envers/src/main/java/org/jboss/envers/revisioninfo/DefaultRevisionInfoGenerator.java @@ -1,28 +1,31 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.revisioninfo; import org.jboss.envers.RevisionListener; import org.jboss.envers.tools.reflection.ReflectionTools; + import org.hibernate.MappingException; import org.hibernate.Session; import org.hibernate.property.Setter; diff --git a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoGenerator.java b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoGenerator.java index 4d743e71bf..7e0002f0aa 100644 --- a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoGenerator.java +++ b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoGenerator.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.revisioninfo; diff --git a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoNumberReader.java b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoNumberReader.java index 1f2f604171..d77e344f82 100644 --- a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoNumberReader.java +++ b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoNumberReader.java @@ -1,27 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.revisioninfo; import org.jboss.envers.tools.reflection.ReflectionTools; + import org.hibernate.property.Getter; /** diff --git a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoQueryCreator.java b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoQueryCreator.java index a9af320f91..37d2c5047d 100644 --- a/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoQueryCreator.java +++ b/envers/src/main/java/org/jboss/envers/revisioninfo/RevisionInfoQueryCreator.java @@ -1,33 +1,33 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.revisioninfo; -import org.hibernate.Session; -import org.hibernate.Query; - import java.util.Date; +import org.hibernate.Query; +import org.hibernate.Session; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/synchronization/VersionsSync.java b/envers/src/main/java/org/jboss/envers/synchronization/VersionsSync.java index 820c7c1474..5834d2cfcd 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/VersionsSync.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/VersionsSync.java @@ -1,36 +1,42 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization; -import org.hibernate.Session; -import org.hibernate.Transaction; -import org.hibernate.FlushMode; -import org.hibernate.event.EventSource; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.Map; +import java.util.Queue; +import javax.transaction.Synchronization; + +import org.jboss.envers.revisioninfo.RevisionInfoGenerator; import org.jboss.envers.synchronization.work.VersionsWorkUnit; import org.jboss.envers.tools.Pair; -import org.jboss.envers.revisioninfo.RevisionInfoGenerator; -import javax.transaction.Synchronization; -import java.util.*; +import org.hibernate.FlushMode; +import org.hibernate.Session; +import org.hibernate.Transaction; +import org.hibernate.event.EventSource; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/VersionsSyncManager.java b/envers/src/main/java/org/jboss/envers/synchronization/VersionsSyncManager.java index 5359e892e0..d712c25cd6 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/VersionsSyncManager.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/VersionsSyncManager.java @@ -1,33 +1,36 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization; -import org.jboss.envers.tools.ConcurrentReferenceHashMap; +import java.util.Map; + import org.jboss.envers.revisioninfo.RevisionInfoGenerator; +import org.jboss.envers.tools.ConcurrentReferenceHashMap; + import org.hibernate.Transaction; import org.hibernate.event.EventSource; -import java.util.Map; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/AbstractVersionsWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/AbstractVersionsWorkUnit.java index e237e485a1..ec47ee6073 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/AbstractVersionsWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/AbstractVersionsWorkUnit.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.RevisionType; -import org.hibernate.Session; - -import java.util.Map; -import java.util.HashMap; import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; + +import org.hibernate.Session; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/AddWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/AddWorkUnit.java index cc53e2998f..772e442ae7 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/AddWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/AddWorkUnit.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.RevisionType; -import org.hibernate.persister.entity.EntityPersister; -import org.hibernate.Session; - import java.io.Serializable; -import java.util.Map; import java.util.HashMap; +import java.util.Map; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; + +import org.hibernate.Session; +import org.hibernate.persister.entity.EntityPersister; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/CollectionChangeWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/CollectionChangeWorkUnit.java index da50aa725b..0813a07013 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/CollectionChangeWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/CollectionChangeWorkUnit.java @@ -1,33 +1,36 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.hibernate.Session; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.RevisionType; - import java.io.Serializable; -import java.util.Map; import java.util.HashMap; +import java.util.Map; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; + +import org.hibernate.Session; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/DelWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/DelWorkUnit.java index 418c77444c..eee5eb98b4 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/DelWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/DelWorkUnit.java @@ -1,33 +1,36 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.RevisionType; -import org.hibernate.Session; - import java.io.Serializable; -import java.util.Map; import java.util.HashMap; +import java.util.Map; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; + +import org.hibernate.Session; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckDispatcher.java b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckDispatcher.java index 29ce0693a5..db976904c4 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckDispatcher.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckDispatcher.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckResult.java b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckResult.java index 6b99b38180..20cb67e1e0 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckResult.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckResult.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckVisitor.java b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckVisitor.java index f9d7c056f8..dbe9a0df78 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckVisitor.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/KeepCheckVisitor.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/ModWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/ModWorkUnit.java index c6295763d8..bce0ab7f65 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/ModWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/ModWorkUnit.java @@ -1,34 +1,37 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.RevisionType; -import org.hibernate.persister.entity.EntityPersister; -import org.hibernate.Session; - import java.io.Serializable; -import java.util.Map; import java.util.HashMap; +import java.util.Map; + +import org.jboss.envers.RevisionType; +import org.jboss.envers.configuration.VersionsConfiguration; + +import org.hibernate.Session; +import org.hibernate.persister.entity.EntityPersister; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/PersistentCollectionChangeWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/PersistentCollectionChangeWorkUnit.java index 7e0e020ae9..4eb860c890 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/PersistentCollectionChangeWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/PersistentCollectionChangeWorkUnit.java @@ -1,38 +1,39 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; -import org.hibernate.Session; -import org.hibernate.collection.PersistentCollection; -import org.jboss.envers.configuration.VersionsConfiguration; -import org.jboss.envers.configuration.VersionsEntitiesConfiguration; -import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; - import java.io.Serializable; import java.util.List; import java.util.Map; +import org.jboss.envers.configuration.VersionsConfiguration; +import org.jboss.envers.configuration.VersionsEntitiesConfiguration; +import org.jboss.envers.entities.mapper.PersistentCollectionChangeData; + +import org.hibernate.Session; +import org.hibernate.collection.PersistentCollection; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/synchronization/work/VersionsWorkUnit.java b/envers/src/main/java/org/jboss/envers/synchronization/work/VersionsWorkUnit.java index a95aefc0d2..5d17e1dbc3 100644 --- a/envers/src/main/java/org/jboss/envers/synchronization/work/VersionsWorkUnit.java +++ b/envers/src/main/java/org/jboss/envers/synchronization/work/VersionsWorkUnit.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.synchronization.work; diff --git a/envers/src/main/java/org/jboss/envers/tools/ArgumentsTools.java b/envers/src/main/java/org/jboss/envers/tools/ArgumentsTools.java index 67b9e7d7a0..e5861f5554 100644 --- a/envers/src/main/java/org/jboss/envers/tools/ArgumentsTools.java +++ b/envers/src/main/java/org/jboss/envers/tools/ArgumentsTools.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/ArraysTools.java b/envers/src/main/java/org/jboss/envers/tools/ArraysTools.java index 8baf5e6078..df30c10eda 100644 --- a/envers/src/main/java/org/jboss/envers/tools/ArraysTools.java +++ b/envers/src/main/java/org/jboss/envers/tools/ArraysTools.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/ConcurrentReferenceHashMap.java b/envers/src/main/java/org/jboss/envers/tools/ConcurrentReferenceHashMap.java index e373649752..52a86c1de4 100644 --- a/envers/src/main/java/org/jboss/envers/tools/ConcurrentReferenceHashMap.java +++ b/envers/src/main/java/org/jboss/envers/tools/ConcurrentReferenceHashMap.java @@ -1,3 +1,27 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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 + */ + /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at diff --git a/envers/src/main/java/org/jboss/envers/tools/HibernateVersion.java b/envers/src/main/java/org/jboss/envers/tools/HibernateVersion.java index 533e07fd13..4f0398bd89 100644 --- a/envers/src/main/java/org/jboss/envers/tools/HibernateVersion.java +++ b/envers/src/main/java/org/jboss/envers/tools/HibernateVersion.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; -import org.hibernate.cfg.Environment; import org.hibernate.MappingException; +import org.hibernate.cfg.Environment; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/tools/MutableBoolean.java b/envers/src/main/java/org/jboss/envers/tools/MutableBoolean.java index 7113e3d2a1..f86400c594 100644 --- a/envers/src/main/java/org/jboss/envers/tools/MutableBoolean.java +++ b/envers/src/main/java/org/jboss/envers/tools/MutableBoolean.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/MutableInteger.java b/envers/src/main/java/org/jboss/envers/tools/MutableInteger.java index 5de9af95fb..7c657a73bd 100644 --- a/envers/src/main/java/org/jboss/envers/tools/MutableInteger.java +++ b/envers/src/main/java/org/jboss/envers/tools/MutableInteger.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/Pair.java b/envers/src/main/java/org/jboss/envers/tools/Pair.java index c60deaa821..e1b4cb1aba 100644 --- a/envers/src/main/java/org/jboss/envers/tools/Pair.java +++ b/envers/src/main/java/org/jboss/envers/tools/Pair.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/StringTools.java b/envers/src/main/java/org/jboss/envers/tools/StringTools.java index b74e508e94..01e252687e 100644 --- a/envers/src/main/java/org/jboss/envers/tools/StringTools.java +++ b/envers/src/main/java/org/jboss/envers/tools/StringTools.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/Tools.java b/envers/src/main/java/org/jboss/envers/tools/Tools.java index 01a2e7b56b..3ef6b87fba 100644 --- a/envers/src/main/java/org/jboss/envers/tools/Tools.java +++ b/envers/src/main/java/org/jboss/envers/tools/Tools.java @@ -1,27 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; -import java.util.*; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/tools/Triple.java b/envers/src/main/java/org/jboss/envers/tools/Triple.java index 7f470f65c5..a98e2271b8 100644 --- a/envers/src/main/java/org/jboss/envers/tools/Triple.java +++ b/envers/src/main/java/org/jboss/envers/tools/Triple.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools; diff --git a/envers/src/main/java/org/jboss/envers/tools/graph/GraphDefiner.java b/envers/src/main/java/org/jboss/envers/tools/graph/GraphDefiner.java index 3bc26bffc0..1ee35d4164 100644 --- a/envers/src/main/java/org/jboss/envers/tools/graph/GraphDefiner.java +++ b/envers/src/main/java/org/jboss/envers/tools/graph/GraphDefiner.java @@ -1,23 +1,25 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.graph; diff --git a/envers/src/main/java/org/jboss/envers/tools/graph/GraphTopologicalSort.java b/envers/src/main/java/org/jboss/envers/tools/graph/GraphTopologicalSort.java index 14c052c09b..9e7871a1d4 100644 --- a/envers/src/main/java/org/jboss/envers/tools/graph/GraphTopologicalSort.java +++ b/envers/src/main/java/org/jboss/envers/tools/graph/GraphTopologicalSort.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.graph; +import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.HashMap; -import java.util.ArrayList; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/tools/graph/TopologicalSort.java b/envers/src/main/java/org/jboss/envers/tools/graph/TopologicalSort.java index a79f2a5dc7..5a27f93d2a 100644 --- a/envers/src/main/java/org/jboss/envers/tools/graph/TopologicalSort.java +++ b/envers/src/main/java/org/jboss/envers/tools/graph/TopologicalSort.java @@ -1,27 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.graph; -import java.util.*; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; /** * Topological sorting of a graph - based on DFS. diff --git a/envers/src/main/java/org/jboss/envers/tools/graph/Vertex.java b/envers/src/main/java/org/jboss/envers/tools/graph/Vertex.java index 18643f5517..d9cfe0f176 100644 --- a/envers/src/main/java/org/jboss/envers/tools/graph/Vertex.java +++ b/envers/src/main/java/org/jboss/envers/tools/graph/Vertex.java @@ -1,28 +1,30 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.graph; -import java.util.List; import java.util.ArrayList; +import java.util.List; /** * A graph vertex - stores its representation, neighbours, start and end time in (D|B)FS. diff --git a/envers/src/main/java/org/jboss/envers/tools/log/YLog.java b/envers/src/main/java/org/jboss/envers/tools/log/YLog.java index d72fde41a2..df082b2d32 100644 --- a/envers/src/main/java/org/jboss/envers/tools/log/YLog.java +++ b/envers/src/main/java/org/jboss/envers/tools/log/YLog.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.log; -import org.jboss.envers.exception.VersionsException; - -import java.lang.reflect.Method; import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + +import org.jboss.envers.exception.VersionsException; /** * A simple logger facade which delegates through reflection to a logging delegate. diff --git a/envers/src/main/java/org/jboss/envers/tools/log/YLogManager.java b/envers/src/main/java/org/jboss/envers/tools/log/YLogManager.java index f23e26567b..f7f833c0e1 100644 --- a/envers/src/main/java/org/jboss/envers/tools/log/YLogManager.java +++ b/envers/src/main/java/org/jboss/envers/tools/log/YLogManager.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.log; -import org.jboss.envers.exception.VersionsException; - -import java.lang.reflect.Method; import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + +import org.jboss.envers.exception.VersionsException; /** * A class for creating logging facades either to loggers obtained from diff --git a/envers/src/main/java/org/jboss/envers/tools/query/Parameters.java b/envers/src/main/java/org/jboss/envers/tools/query/Parameters.java index 4ffa3d8e93..ad42837c5d 100644 --- a/envers/src/main/java/org/jboss/envers/tools/query/Parameters.java +++ b/envers/src/main/java/org/jboss/envers/tools/query/Parameters.java @@ -1,35 +1,35 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.query; -import org.jboss.envers.tools.MutableInteger; -import org.jboss.envers.tools.MutableBoolean; - -import java.util.List; import java.util.ArrayList; -import java.util.Map; import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.jboss.envers.tools.MutableBoolean; +import org.jboss.envers.tools.MutableInteger; /** * Parameters of a query, built using {@link QueryBuilder}. diff --git a/envers/src/main/java/org/jboss/envers/tools/query/QueryBuilder.java b/envers/src/main/java/org/jboss/envers/tools/query/QueryBuilder.java index 8250cd0c8c..ef317ab6d1 100644 --- a/envers/src/main/java/org/jboss/envers/tools/query/QueryBuilder.java +++ b/envers/src/main/java/org/jboss/envers/tools/query/QueryBuilder.java @@ -1,36 +1,36 @@ /* - * JBoss, Home of Professional Open Source + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated - * by the @authors tag. All rights reserved. + * Copyright (c) 2008, 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. * - * See the copyright.txt in the distribution for a full listing of individual - * contributors. 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.query; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + import org.jboss.envers.tools.MutableInteger; import org.jboss.envers.tools.Pair; import org.jboss.envers.tools.StringTools; -import java.util.Map; -import java.util.List; -import java.util.ArrayList; - /** * A class for incrementaly building a HQL query. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/tools/reflection/ReflectionTools.java b/envers/src/main/java/org/jboss/envers/tools/reflection/ReflectionTools.java index dec75ffe73..46f5d45600 100644 --- a/envers/src/main/java/org/jboss/envers/tools/reflection/ReflectionTools.java +++ b/envers/src/main/java/org/jboss/envers/tools/reflection/ReflectionTools.java @@ -1,39 +1,41 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.reflection; -import org.hibernate.property.PropertyAccessor; -import org.hibernate.property.BasicPropertyAccessor; -import org.hibernate.property.Getter; -import org.hibernate.property.Setter; -import org.hibernate.util.ReflectHelper; -import org.jboss.envers.exception.VersionsException; -import org.jboss.envers.tools.Pair; -import org.jboss.envers.tools.ConcurrentReferenceHashMap; - import java.util.Map; +import org.jboss.envers.exception.VersionsException; +import org.jboss.envers.tools.ConcurrentReferenceHashMap; +import org.jboss.envers.tools.Pair; import static org.jboss.envers.tools.Pair.make; +import org.hibernate.property.BasicPropertyAccessor; +import org.hibernate.property.Getter; +import org.hibernate.property.PropertyAccessor; +import org.hibernate.property.Setter; +import org.hibernate.util.ReflectHelper; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/tools/reflection/YClass.java b/envers/src/main/java/org/jboss/envers/tools/reflection/YClass.java index e92759e2e3..58c2327a4f 100644 --- a/envers/src/main/java/org/jboss/envers/tools/reflection/YClass.java +++ b/envers/src/main/java/org/jboss/envers/tools/reflection/YClass.java @@ -1,32 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.reflection; -import org.jboss.envers.exception.VersionsException; - -import java.util.List; -import java.util.ArrayList; import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; +import java.util.ArrayList; +import java.util.List; + +import org.jboss.envers.exception.VersionsException; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/main/java/org/jboss/envers/tools/reflection/YMethodsAndClasses.java b/envers/src/main/java/org/jboss/envers/tools/reflection/YMethodsAndClasses.java index a8b964a792..360db5205a 100644 --- a/envers/src/main/java/org/jboss/envers/tools/reflection/YMethodsAndClasses.java +++ b/envers/src/main/java/org/jboss/envers/tools/reflection/YMethodsAndClasses.java @@ -1,30 +1,32 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.reflection; -import org.jboss.envers.exception.VersionsException; - import java.lang.reflect.Method; +import org.jboss.envers.exception.VersionsException; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/tools/reflection/YProperty.java b/envers/src/main/java/org/jboss/envers/tools/reflection/YProperty.java index 8c0872fd04..8d87121113 100644 --- a/envers/src/main/java/org/jboss/envers/tools/reflection/YProperty.java +++ b/envers/src/main/java/org/jboss/envers/tools/reflection/YProperty.java @@ -1,31 +1,33 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.reflection; -import org.jboss.envers.exception.VersionsException; - import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; +import org.jboss.envers.exception.VersionsException; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/main/java/org/jboss/envers/tools/reflection/YReflectionManager.java b/envers/src/main/java/org/jboss/envers/tools/reflection/YReflectionManager.java index 982969595b..1b9bc107af 100644 --- a/envers/src/main/java/org/jboss/envers/tools/reflection/YReflectionManager.java +++ b/envers/src/main/java/org/jboss/envers/tools/reflection/YReflectionManager.java @@ -1,31 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.tools.reflection; -import org.hibernate.cfg.Configuration; -import org.hibernate.MappingException; +import java.lang.reflect.InvocationTargetException; + import org.jboss.envers.exception.VersionsException; -import java.lang.reflect.InvocationTargetException; +import org.hibernate.MappingException; +import org.hibernate.cfg.Configuration; /** * A reflection manager which proxies either to the old classes from package org.hibernate.reflection, diff --git a/envers/src/test/java/org/jboss/envers/test/AbstractEntityTest.java b/envers/src/test/java/org/jboss/envers/test/AbstractEntityTest.java index 064a28b434..fce969628d 100644 --- a/envers/src/test/java/org/jboss/envers/test/AbstractEntityTest.java +++ b/envers/src/test/java/org/jboss/envers/test/AbstractEntityTest.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.BeforeMethod; -import org.jboss.envers.VersionsReader; -import org.jboss.envers.VersionsReaderFactory; - +import java.io.IOException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; -import java.io.IOException; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.VersionsReaderFactory; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/IntTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/IntTestEntity.java index 07c658c953..18e4ee77ef 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/IntTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/IntTestEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/StrIntTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/StrIntTestEntity.java index e69965d549..c6a26a5555 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/StrIntTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/StrIntTestEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/StrTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/StrTestEntity.java index aa809633d8..180f2aaecc 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/StrTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/StrTestEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/UnversionedEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/UnversionedEntity.java index e61e95d142..8397a5fa99 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/UnversionedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/UnversionedEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities; -import org.jboss.envers.Versioned; -import org.jboss.envers.Unversioned; - -import javax.persistence.Id; import javax.persistence.Basic; import javax.persistence.Entity; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Unversioned; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/UnversionedStrTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/UnversionedStrTestEntity.java index 1d26c22e70..4ca7709b7c 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/UnversionedStrTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/UnversionedStrTestEntity.java @@ -1,10 +1,31 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/collection/EnumSetEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/collection/EnumSetEntity.java index abb8c66878..54f9e50d74 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/collection/EnumSetEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/collection/EnumSetEntity.java @@ -1,11 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.collection; -import org.jboss.envers.Versioned; -import org.hibernate.annotations.CollectionOfElements; - -import javax.persistence.*; -import java.util.Set; import java.util.HashSet; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; + +import org.hibernate.annotations.CollectionOfElements; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringListEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringListEntity.java index 3570c6082b..feabf705c6 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringListEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringListEntity.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.collection; +import java.util.ArrayList; +import java.util.List; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + import org.jboss.envers.Versioned; + import org.hibernate.annotations.CollectionOfElements; import org.hibernate.annotations.IndexColumn; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import java.util.List; -import java.util.ArrayList; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringMapEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringMapEntity.java index 2e6e225932..064cb13906 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringMapEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringMapEntity.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.collection; -import org.jboss.envers.Versioned; -import org.hibernate.annotations.CollectionOfElements; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import java.util.Map; import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; + +import org.hibernate.annotations.CollectionOfElements; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringSetEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringSetEntity.java index 5e8856a2b2..4eeb1c1d43 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/collection/StringSetEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/collection/StringSetEntity.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.collection; -import org.jboss.envers.Versioned; -import org.hibernate.annotations.CollectionOfElements; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import java.util.Set; import java.util.HashSet; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; + +import org.hibernate.annotations.CollectionOfElements; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/components/Component1.java b/envers/src/test/java/org/jboss/envers/test/entities/components/Component1.java index d27c8cf26d..b9b534d3ec 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/components/Component1.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/components/Component1.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.components; /** diff --git a/envers/src/test/java/org/jboss/envers/test/entities/components/Component2.java b/envers/src/test/java/org/jboss/envers/test/entities/components/Component2.java index 9f723a57e7..0e98fdf182 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/components/Component2.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/components/Component2.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.components; /** diff --git a/envers/src/test/java/org/jboss/envers/test/entities/components/ComponentTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/components/ComponentTestEntity.java index bab8322c53..2d89a74af5 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/components/ComponentTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/components/ComponentTestEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.components; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import javax.persistence.Embedded; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/customtype/Component.java b/envers/src/test/java/org/jboss/envers/test/entities/customtype/Component.java index 495c26494b..664d1bd864 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/customtype/Component.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/customtype/Component.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.customtype; import java.io.Serializable; diff --git a/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeCustomTypeEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeCustomTypeEntity.java index 25addb0d3f..98ad145569 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeCustomTypeEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeCustomTypeEntity.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.customtype; -import org.jboss.envers.Versioned; -import org.hibernate.annotations.TypeDef; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.Columns; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; + +import org.hibernate.annotations.Columns; +import org.hibernate.annotations.Type; +import org.hibernate.annotations.TypeDef; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeTestUserType.java b/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeTestUserType.java index 9897bf9cf7..0544c6e74b 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeTestUserType.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/customtype/CompositeTestUserType.java @@ -1,15 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.customtype; -import org.hibernate.HibernateException; -import org.hibernate.Hibernate; -import org.hibernate.usertype.CompositeUserType; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.type.Type; - +import java.io.Serializable; +import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; -import java.sql.PreparedStatement; -import java.io.Serializable; + +import org.hibernate.Hibernate; +import org.hibernate.HibernateException; +import org.hibernate.engine.SessionImplementor; +import org.hibernate.type.Type; +import org.hibernate.usertype.CompositeUserType; /** * @author Andrew DePue diff --git a/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedCustomTypeEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedCustomTypeEntity.java index a5f8b8d99d..714bd81602 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedCustomTypeEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedCustomTypeEntity.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.customtype; -import org.jboss.envers.Versioned; -import org.hibernate.annotations.TypeDef; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.Parameter; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; + +import org.hibernate.annotations.Parameter; +import org.hibernate.annotations.Type; +import org.hibernate.annotations.TypeDef; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedTestUserType.java b/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedTestUserType.java index 27e708b3c7..802f79c382 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedTestUserType.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/customtype/ParametrizedTestUserType.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.customtype; import java.io.Serializable; @@ -7,8 +30,8 @@ import java.sql.SQLException; import java.sql.Types; import java.util.Properties; -import org.hibernate.HibernateException; import org.hibernate.Hibernate; +import org.hibernate.HibernateException; import org.hibernate.usertype.ParameterizedType; import org.hibernate.usertype.UserType; diff --git a/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbId.java b/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbId.java index 0618f4449b..74babc0f6d 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbId.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbId.java @@ -1,7 +1,30 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.ids; -import javax.persistence.Embeddable; import java.io.Serializable; +import javax.persistence.Embeddable; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbIdTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbIdTestEntity.java index 146b7eb6b0..203c58386d 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbIdTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/ids/EmbIdTestEntity.java @@ -1,10 +1,32 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.ids; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.ids.EmbId; - -import javax.persistence.Entity; import javax.persistence.EmbeddedId; +import javax.persistence.Entity; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/ids/MulId.java b/envers/src/test/java/org/jboss/envers/test/entities/ids/MulId.java index d5ca3c7ad5..7daf0501bb 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/ids/MulId.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/ids/MulId.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.ids; import java.io.Serializable; diff --git a/envers/src/test/java/org/jboss/envers/test/entities/ids/MulIdTestEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/ids/MulIdTestEntity.java index 61d8efab89..346a718c01 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/ids/MulIdTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/ids/MulIdTestEntity.java @@ -1,11 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.ids; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.ids.MulId; - import javax.persistence.Entity; -import javax.persistence.IdClass; import javax.persistence.Id; +import javax.persistence.IdClass; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwnedEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwnedEntity.java index 5f8f929016..f0abf45d75 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwnedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwnedEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - +import java.util.List; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToMany; -import java.util.List; + +import org.jboss.envers.Versioned; /** * Many-to-many not-owning entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwningEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwningEntity.java index 9ef8300753..f17f3403ae 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwningEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/ListOwningEntity.java @@ -1,9 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.List; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + +import org.jboss.envers.Versioned; /** * Entity owning the many-to-many relation diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwnedEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwnedEntity.java index f69456effb..ee56cf8409 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwnedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwnedEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - +import java.util.Set; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToMany; -import java.util.Set; + +import org.jboss.envers.Versioned; /** * Many-to-many not-owning entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwningEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwningEntity.java index 41755a337f..c6066397ac 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwningEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/MapOwningEntity.java @@ -1,10 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - -import javax.persistence.*; -import java.util.Map; import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + +import org.jboss.envers.Versioned; /** * Entity owning the many-to-many relation diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwnedEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwnedEntity.java index 05f8ce491b..40e1bfc75b 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwnedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwnedEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - +import java.util.Set; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToMany; -import java.util.Set; + +import org.jboss.envers.Versioned; /** * Many-to-many not-owning entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwningEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwningEntity.java index 3ff699473e..873e9c1dcc 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwningEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/SetOwningEntity.java @@ -1,9 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + +import org.jboss.envers.Versioned; /** * Entity owning the many-to-many relation diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/ListUniEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/ListUniEntity.java index 2862bf301b..91091a4ebc 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/ListUniEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/ListUniEntity.java @@ -1,11 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany.unidirectional; +import java.util.List; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.*; -import java.util.List; - /** * Entity owning the many-to-many relation * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/MapUniEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/MapUniEntity.java index 7950291038..8c5439ef89 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/MapUniEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/MapUniEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany.unidirectional; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.StrTestEntity; - +import java.util.Map; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToMany; -import java.util.Map; + +import org.jboss.envers.Versioned; +import org.jboss.envers.test.entities.StrTestEntity; /** * Entity with a map from a string to an entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/SetUniEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/SetUniEntity.java index 373a63a39e..365b506339 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/SetUniEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/manytomany/unidirectional/SetUniEntity.java @@ -1,11 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.manytomany.unidirectional; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.*; -import java.util.Set; - /** * Entity owning the many-to-many relation * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefEdEntity.java index a6baa6c29c..b5611540d1 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefEdEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; - +import java.util.Collection; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; -import java.util.Collection; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefIngEntity.java index 91f58329d7..dc1d1c4988 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/CollectionRefIngEntity.java @@ -1,8 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefEdEntity.java index 68ac16e469..6555c1f682 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefEdEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; - +import java.util.List; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; -import java.util.List; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefIngEntity.java index 2646a20a67..97ceeaf826 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ListRefIngEntity.java @@ -1,8 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefEdEntity.java index 72463db9bc..47f2e39178 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefEdEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; - +import java.util.Set; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; -import java.util.Set; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefIngEntity.java index 8e31df08a8..ce7a03c8a4 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/SetRefIngEntity.java @@ -1,8 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/DoubleSetRefCollEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/DoubleSetRefCollEntity.java index 9160af9e79..ec94ca4604 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/DoubleSetRefCollEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/DoubleSetRefCollEntity.java @@ -1,14 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinTable; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.JoinTable; -import java.util.Set; - /** * Set collection of references entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ListRefCollEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ListRefCollEntity.java index 35abefb40b..e5bb120407 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ListRefCollEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ListRefCollEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.StrTestEntity; - +import java.util.List; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; -import java.util.List; + +import org.jboss.envers.Versioned; +import org.jboss.envers.test.entities.StrTestEntity; /** * Set collection of references entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetJoinColumnRefCollEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetJoinColumnRefCollEntity.java index 8b2aac6f64..893d56b024 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetJoinColumnRefCollEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetJoinColumnRefCollEntity.java @@ -1,14 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.JoinColumn; -import java.util.Set; - /** * A detached relation to another entity, with a @OneToMany+@JoinColumn mapping. * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetRefCollEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetRefCollEntity.java index 0bc9f52ed3..99a89c3664 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetRefCollEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/SetRefCollEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.StrTestEntity; - +import java.util.Set; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; -import java.util.Set; + +import org.jboss.envers.Versioned; +import org.jboss.envers.test.entities.StrTestEntity; /** * Set collection of references entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityEmbId.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityEmbId.java index 8720b51289..a45e8b4c63 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityEmbId.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityEmbId.java @@ -1,14 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached.ids; +import java.util.Set; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; import org.jboss.envers.test.entities.ids.EmbIdTestEntity; -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.EmbeddedId; -import java.util.Set; - /** * Set collection of references entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityMulId.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityMulId.java index f97c005a9d..801720cd5f 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityMulId.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/detached/ids/SetRefCollEntityMulId.java @@ -1,11 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.detached.ids; -import org.jboss.envers.Versioned; -import org.jboss.envers.test.entities.ids.MulIdTestEntity; -import org.jboss.envers.test.entities.ids.MulId; - -import javax.persistence.*; import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; +import org.jboss.envers.test.entities.ids.MulId; +import org.jboss.envers.test.entities.ids.MulIdTestEntity; /** * Set collection of references entity diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdEmbIdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdEmbIdEntity.java index 7b3a6607ba..0d6271ac5b 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdEmbIdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdEmbIdEntity.java @@ -1,13 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.ids; +import java.util.Set; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.EmbeddedId; -import java.util.Set; - /** * ReferencEd entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdMulIdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdMulIdEntity.java index 1a480954c6..e6ee1bd396 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdMulIdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefEdMulIdEntity.java @@ -1,14 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.ids; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.MulId; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.IdClass; -import java.util.Set; - /** * ReferencEd entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngEmbIdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngEmbIdEntity.java index 09872be9c3..e10892f24b 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngEmbIdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngEmbIdEntity.java @@ -1,10 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.ids; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.ManyToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; -import javax.persistence.*; - /** * ReferencIng entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngMulIdEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngMulIdEntity.java index d986e35947..b209616fc1 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngMulIdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/onetomany/ids/SetRefIngMulIdEntity.java @@ -1,10 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.onetomany.ids; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.ManyToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.MulId; -import javax.persistence.*; - /** * ReferencIng entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomPropertyAccessRevEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomPropertyAccessRevEntity.java index 8ca1c4db0c..0b52bf5d09 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomPropertyAccessRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomPropertyAccessRevEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.reventity; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.RevisionEntity; import org.jboss.envers.RevisionNumber; import org.jboss.envers.RevisionTimestamp; -import org.jboss.envers.RevisionEntity; - -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Entity; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomRevEntity.java b/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomRevEntity.java index 32cb2574df..32e018b505 100644 --- a/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/entities/reventity/CustomRevEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.entities.reventity; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.RevisionEntity; import org.jboss.envers.RevisionNumber; import org.jboss.envers.RevisionTimestamp; -import org.jboss.envers.RevisionEntity; - -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Entity; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity1.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity1.java index 6aee4efb44..1091044abe 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity1.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity1.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity2.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity2.java index 9ab44c058b..73c01f9d2d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity2.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity2.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity3.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity3.java index 567460894e..315b35bcb3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity3.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity3.java @@ -1,8 +1,31 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity4.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity4.java index 63c6248fac..b382390894 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity4.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/BasicTestEntity4.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/Delete.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/Delete.java index 8e167d8237..baf683cf31 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/Delete.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/Delete.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/GlobalVersioned.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/GlobalVersioned.java index 9e9feb45b8..48a5842524 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/GlobalVersioned.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/GlobalVersioned.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/ManyOperationsInTransaction.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/ManyOperationsInTransaction.java index a043e3d9ca..8b4a49d12f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/ManyOperationsInTransaction.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/ManyOperationsInTransaction.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/NotVersioned.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/NotVersioned.java index 86d031760e..c6c6fa9af5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/NotVersioned.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/NotVersioned.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.exception.NotVersionedException; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - import javax.persistence.EntityManager; +import org.jboss.envers.exception.NotVersionedException; +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/NullProperties.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/NullProperties.java index eb7a511bf3..5543aff703 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/NullProperties.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/NullProperties.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/Simple.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/Simple.java index 4a432e4fb1..13707b6b4f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/Simple.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/Simple.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.IntTestEntity; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/SingleOperationInTransaction.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/SingleOperationInTransaction.java index ab2a088b25..081f378614 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/SingleOperationInTransaction.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/SingleOperationInTransaction.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.exception.RevisionDoesNotExistException; +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedPropertiesChange.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedPropertiesChange.java index b1266884c4..029b166290 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedPropertiesChange.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedPropertiesChange.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedProperty.java b/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedProperty.java index ac2f231ba4..b6e29429b3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedProperty.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/basic/UnversionedProperty.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.basic; -import org.hibernate.ejb.Ejb3Configuration; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.UnversionedEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.jboss.envers.test.entities.UnversionedEntity; -import org.jboss.envers.test.AbstractEntityTest; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToManyCache.java b/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToManyCache.java index fd0786e2c6..9d9c79113b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToManyCache.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToManyCache.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.cache; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.onetomany.SetRefEdEntity; import org.jboss.envers.test.entities.onetomany.SetRefIngEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToOneCache.java b/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToOneCache.java index 7a8ac33fb1..d438d9764f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToOneCache.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/cache/OneToOneCache.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.cache; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.integration.onetoone.bidirectional.BiRefEdEntity; import org.jboss.envers.test.integration.onetoone.bidirectional.BiRefIngEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/cache/QueryCache.java b/envers/src/test/java/org/jboss/envers/test/integration/cache/QueryCache.java index b9c87a83bf..b589decafe 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/cache/QueryCache.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/cache/QueryCache.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.cache; +import java.util.List; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.IntTestEntity; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/EnumSet.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/EnumSet.java index 024cef95a9..55fa79f23b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/EnumSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/EnumSet.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; import org.jboss.envers.test.entities.collection.EnumSetEntity; +import static org.jboss.envers.test.entities.collection.EnumSetEntity.E1; +import static org.jboss.envers.test.entities.collection.EnumSetEntity.E2; +import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; + import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; - -import static org.jboss.envers.test.entities.collection.EnumSetEntity.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringList.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringList.java index 75ab58e1d6..f28d9a0647 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringList.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringList.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.test.entities.collection.StringListEntity; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.collection.StringListEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringMap.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringMap.java index b467576e5c..7e708b7bc3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringMap.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringMap.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.test.entities.collection.StringMapEntity; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.collection.StringMapEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringSet.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringSet.java index f4d7a3c033..cf1a11ad99 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/StringSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/StringSet.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.test.entities.collection.StringSetEntity; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.collection.StringSetEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKey.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKey.java index 40c6f272f8..c0273c6a3b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKey.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKey.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection.mapkey; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.test.entities.components.ComponentTestEntity; import org.jboss.envers.test.entities.components.Component1; import org.jboss.envers.test.entities.components.Component2; +import org.jboss.envers.test.entities.components.ComponentTestEntity; +import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKeyEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKeyEntity.java index daefdb1a07..ae7625aa57 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKeyEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/ComponentMapKeyEntity.java @@ -1,13 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection.mapkey; +import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.ManyToMany; +import javax.persistence.MapKey; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.components.Component1; import org.jboss.envers.test.entities.components.ComponentTestEntity; -import javax.persistence.*; -import java.util.Map; -import java.util.HashMap; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKey.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKey.java index 355dec92a4..a587048ca5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKey.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKey.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection.mapkey; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKeyEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKeyEntity.java index b5bc67465b..22d35c39ff 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKeyEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/collection/mapkey/IdMapKeyEntity.java @@ -1,12 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.collection.mapkey; +import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.ManyToMany; +import javax.persistence.MapKey; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.*; -import java.util.Map; -import java.util.HashMap; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/components/Components.java b/envers/src/test/java/org/jboss/envers/test/integration/components/Components.java index 24e160d4af..0aef265a7b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/components/Components.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/components/Components.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.components; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.components.Component1; import org.jboss.envers.test.entities.components.Component2; import org.jboss.envers.test.entities.components.ComponentTestEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/customtype/CompositeCustom.java b/envers/src/test/java/org/jboss/envers/test/integration/customtype/CompositeCustom.java index 4915edf9fd..559d9d0bed 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/customtype/CompositeCustom.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/customtype/CompositeCustom.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.customtype; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.customtype.CompositeCustomTypeEntity; import org.jboss.envers.test.entities.customtype.Component; +import org.jboss.envers.test.entities.customtype.CompositeCustomTypeEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/customtype/ParametrizedCustom.java b/envers/src/test/java/org/jboss/envers/test/integration/customtype/ParametrizedCustom.java index c369385263..fbb16d9f37 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/customtype/ParametrizedCustom.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/customtype/ParametrizedCustom.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.customtype; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.customtype.ParametrizedCustomTypeEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/DateTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/data/DateTestEntity.java index 806063f8c5..8a70eb499c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/DateTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/DateTestEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import java.util.Date; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/Dates.java b/envers/src/test/java/org/jboss/envers/test/integration/data/Dates.java index bb8c4ab26e..1c16269ea6 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/Dates.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/Dates.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/EnumTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/data/EnumTestEntity.java index 81bd7b1740..73fd447d7a 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/EnumTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/EnumTestEntity.java @@ -1,8 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/Enums.java b/envers/src/test/java/org/jboss/envers/test/integration/data/Enums.java index 7b1663dcbb..65b2ef7274 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/Enums.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/Enums.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/LobTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/data/LobTestEntity.java index 8f91e0b128..d5cb0cf822 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/LobTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/LobTestEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Lob; import java.util.Arrays; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Lob; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/Lobs.java b/envers/src/test/java/org/jboss/envers/test/integration/data/Lobs.java index 7b5ee8f5ea..1731d20c06 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/Lobs.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/Lobs.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/SerObject.java b/envers/src/test/java/org/jboss/envers/test/integration/data/SerObject.java index 04f0986234..026d694d0e 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/SerObject.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/SerObject.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; import java.io.Serializable; diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/SerializableTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/data/SerializableTestEntity.java index aefe6bab9d..18bb093d65 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/SerializableTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/SerializableTestEntity.java @@ -1,11 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; -import java.util.Date; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/data/Serializables.java b/envers/src/test/java/org/jboss/envers/test/integration/data/Serializables.java index 024773197d..7bf5181d47 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/data/Serializables.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/data/Serializables.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.data; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/AbstractFlushTest.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/AbstractFlushTest.java index 4b0cea8eb5..a50d35d2f4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/AbstractFlushTest.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/AbstractFlushTest.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.io.IOException; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; +import org.testng.annotations.BeforeClass; + import org.hibernate.FlushMode; import org.hibernate.Session; import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; -import java.io.IOException; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddDel.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddDel.java index df211a97ab..104802a67c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddDel.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddDel.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.FlushMode; -import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.FlushMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddMod.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddMod.java index 6146dce882..e9bb265879 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddMod.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushAddMod.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.FlushMode; -import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.FlushMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModDel.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModDel.java index a439cdd1f7..2ca5392bdf 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModDel.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModDel.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.FlushMode; -import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.FlushMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModMod.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModMod.java index 90bc72f2f7..b733ee1a12 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModMod.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/DoubleFlushModMod.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.FlushMode; -import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.FlushMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/flush/ManualFlush.java b/envers/src/test/java/org/jboss/envers/test/integration/flush/ManualFlush.java index 1a8c26ad15..40edb88ee6 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/flush/ManualFlush.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/flush/ManualFlush.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.flush; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.FlushMode; -import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.FlushMode; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/ids/CompositeIds.java b/envers/src/test/java/org/jboss/envers/test/integration/ids/CompositeIds.java index 50b042568c..d7e7366f9f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/ids/CompositeIds.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/ids/CompositeIds.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.ids; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.EmbId; -import org.jboss.envers.test.entities.ids.MulId; import org.jboss.envers.test.entities.ids.EmbIdTestEntity; +import org.jboss.envers.test.entities.ids.MulId; import org.jboss.envers.test.entities.ids.MulIdTestEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildEntity.java index e4fad7393b..15bec4f3de 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildEntity.java @@ -1,8 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildVersioning.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildVersioning.java index 5ece5105d0..d43b0f86cb 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildVersioning.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ChildVersioning.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single; -import org.hibernate.ejb.Ejb3Configuration; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.jboss.envers.test.AbstractEntityTest; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentEntity.java index 1f7399669a..1f8066a7e8 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentEntity.java @@ -1,8 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorColumn; +import javax.persistence.DiscriminatorType; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Inheritance; +import javax.persistence.InheritanceType; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentVersioning.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentVersioning.java index a1f5573ba0..23e4312d28 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentVersioning.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/ParentVersioning.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single; -import org.hibernate.ejb.Ejb3Configuration; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.jboss.envers.test.AbstractEntityTest; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildIngEntity.java index b5c3493deb..983a444fc9 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildIngEntity.java @@ -1,8 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.childrelation; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildReferencing.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildReferencing.java index 351de90628..7c3748d118 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildReferencing.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ChildReferencing.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.childrelation; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ParentNotIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ParentNotIngEntity.java index 0f32357931..3672d32f82 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ParentNotIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ParentNotIngEntity.java @@ -1,8 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.childrelation; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorColumn; +import javax.persistence.DiscriminatorType; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Inheritance; +import javax.persistence.InheritanceType; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ReferencedEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ReferencedEntity.java index 640d03e571..8c0515ff8b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ReferencedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/childrelation/ReferencedEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.childrelation; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ChildIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ChildIngEntity.java index 086e3a58a3..2735153fc4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ChildIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ChildIngEntity.java @@ -1,8 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.relation; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ParentIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ParentIngEntity.java index e78cdd779e..f61971a7c5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ParentIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ParentIngEntity.java @@ -1,8 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.relation; -import org.jboss.envers.Versioned; +import javax.persistence.Basic; +import javax.persistence.DiscriminatorColumn; +import javax.persistence.DiscriminatorType; +import javax.persistence.DiscriminatorValue; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Inheritance; +import javax.persistence.InheritanceType; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/PolymorphicCollection.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/PolymorphicCollection.java index 4d048a6877..dc01c09fa5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/PolymorphicCollection.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/PolymorphicCollection.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.relation; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ReferencedEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ReferencedEntity.java index 7515446097..4e7615cbd8 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ReferencedEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/inheritance/single/relation/ReferencedEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.inheritance.single.relation; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicList.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicList.java index 07e0e7dcfb..f81667c7b5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicList.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicList.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.ListOwningEntity; import org.jboss.envers.test.entities.manytomany.ListOwnedEntity; +import org.jboss.envers.test.entities.manytomany.ListOwningEntity; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Collections; -import java.util.ArrayList; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicMap.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicMap.java index 92dcf97f46..929dc60c8f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicMap.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicMap.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.MapOwningEntity; -import org.jboss.envers.test.entities.manytomany.MapOwnedEntity; -import org.jboss.envers.test.tools.TestTools; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.manytomany.MapOwnedEntity; +import org.jboss.envers.test.entities.manytomany.MapOwningEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicSet.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicSet.java index aba6239e4b..7be5e398e9 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/BasicSet.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.SetOwningEntity; -import org.jboss.envers.test.entities.manytomany.SetOwnedEntity; -import org.jboss.envers.test.tools.TestTools; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.manytomany.SetOwnedEntity; +import org.jboss.envers.test.entities.manytomany.SetOwningEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMap.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMap.java index 407b28d178..60a464696d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMap.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMap.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany.ternary; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.entities.IntTestEntity; +import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMapEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMapEntity.java index acbc7e1aa9..734feadc9e 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMapEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/ternary/TernaryMapEntity.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany.ternary; +import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.IntTestEntity; import org.jboss.envers.test.entities.StrTestEntity; -import org.hibernate.annotations.MapKeyManyToMany; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.ManyToMany; -import java.util.Map; -import java.util.HashMap; +import org.hibernate.annotations.MapKeyManyToMany; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniList.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniList.java index 4abf346e7c..2ce340fd02 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniList.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniList.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany.unidirectional; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.unidirectional.ListUniEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.manytomany.unidirectional.ListUniEntity; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Collections; -import java.util.ArrayList; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniMap.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniMap.java index 1cf3923847..4c097d1b87 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniMap.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniMap.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany.unidirectional; +import java.util.Arrays; +import java.util.HashMap; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.unidirectional.MapUniEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.manytomany.unidirectional.MapUniEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashMap; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniSet.java b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniSet.java index d75c5409ed..023cd4d072 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/manytomany/unidirectional/BasicUniSet.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.manytomany.unidirectional; -import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.manytomany.unidirectional.SetUniEntity; -import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.test.tools.TestTools; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.manytomany.unidirectional.SetUniEntity; +import org.jboss.envers.test.tools.TestTools; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/BasicNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/BasicNaming.java index 50ba7fd882..72b30dc7be 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/BasicNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/BasicNaming.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/DetachedNamingTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/DetachedNamingTestEntity.java index cf7d093f54..7ad2c472d4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/DetachedNamingTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/DetachedNamingTestEntity.java @@ -1,11 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.JoinTable; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.*; -import java.util.Set; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNaming.java index 849fb3a439..ee5479c1ea 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNaming.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Column; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefEdEntity.java index f0c6b927a1..81fd220b90 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefEdEntity.java @@ -1,9 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.List; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefIngEntity.java index 7e523656e6..0fcba2fd58 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/JoinNamingRefIngEntity.java @@ -1,8 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; -import org.jboss.envers.Versioned; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/NamingTestEntity1.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/NamingTestEntity1.java index ac58283881..dc7db8edd0 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/NamingTestEntity1.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/NamingTestEntity1.java @@ -1,10 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Table; + import org.jboss.envers.Versioned; import org.jboss.envers.VersionsTable; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/OneToManyUnidirectionalNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/OneToManyUnidirectionalNaming.java index 1903fb35f5..4082d5e21b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/OneToManyUnidirectionalNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/OneToManyUnidirectionalNaming.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Column; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableNaming.java index 6f591f13ff..ee7e41b222 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableNaming.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Column; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableTestEntity.java index 8cf4b95211..57846f7a72 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/VersionsJoinTableTestEntity.java @@ -1,12 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming; +import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.OneToMany; + import org.jboss.envers.Versioned; import org.jboss.envers.VersionsJoinTable; import org.jboss.envers.test.entities.StrTestEntity; -import javax.persistence.*; -import java.util.Set; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/EmbIdNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/EmbIdNaming.java index 23480f0a30..df898dfa71 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/EmbIdNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/EmbIdNaming.java @@ -1,10 +1,31 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import org.jboss.envers.test.entities.ids.EmbId; - -import javax.persistence.Embeddable; -import javax.persistence.Column; import java.io.Serializable; +import javax.persistence.Column; +import javax.persistence.Embeddable; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNaming.java index a99008c8bd..a8bd865acb 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNaming.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Column; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefEdEntity.java index a76cf066c7..18949cd2ea 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefEdEntity.java @@ -1,9 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.List; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefIngEntity.java index 9c52ded48b..b31b386b54 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinEmbIdNamingRefIngEntity.java @@ -1,8 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.JoinColumns; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNaming.java index c2b89f17b1..3cc7b4f68b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNaming.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Column; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefEdEntity.java index 6b1b9ba62d..6152aaf096 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefEdEntity.java @@ -1,9 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.List; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * ReferencEd entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefIngEntity.java index 7effed6e46..425f68892f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/JoinMulIdNamingRefIngEntity.java @@ -1,8 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.JoinColumn; +import javax.persistence.JoinColumns; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * ReferencIng entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/MulIdNaming.java b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/MulIdNaming.java index 398c1acc10..3cf2fc1b89 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/MulIdNaming.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/naming/ids/MulIdNaming.java @@ -1,7 +1,30 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.naming.ids; -import javax.persistence.Column; import java.io.Serializable; +import javax.persistence.Column; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertable.java b/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertable.java index 5c690f4fe1..b6cebf02be 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertable.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertable.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.notinsertable; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertableTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertableTestEntity.java index 9b52f7a04b..361ffe9ab0 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertableTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/notinsertable/NotInsertableTestEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.notinsertable; -import org.jboss.envers.Versioned; - -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.GeneratedValue; import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicCollection.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicCollection.java index 46700ea128..eb809e7506 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicCollection.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicCollection.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.onetomany.CollectionRefEdEntity; import org.jboss.envers.test.entities.onetomany.CollectionRefIngEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicList.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicList.java index 9595ca9bf9..8570b9fd1a 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicList.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicList.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.onetomany.ListRefEdEntity; import org.jboss.envers.test.entities.onetomany.ListRefIngEntity; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.*; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSet.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSet.java index b6e2324b72..2f757cf756 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSet.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import java.util.Collections; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.onetomany.SetRefEdEntity; import org.jboss.envers.test.entities.onetomany.SetRefIngEntity; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Collections; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithEmbId.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithEmbId.java index 4e52aded45..ce82bbe5f5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithEmbId.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithEmbId.java @@ -1,18 +1,42 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.EmbId; import org.jboss.envers.test.entities.onetomany.ids.SetRefEdEmbIdEntity; import org.jboss.envers.test.entities.onetomany.ids.SetRefIngEmbIdEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithMulId.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithMulId.java index 07f25cd547..c998b781e4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithMulId.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithMulId.java @@ -1,18 +1,42 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.MulId; import org.jboss.envers.test.entities.onetomany.ids.SetRefEdMulIdEntity; import org.jboss.envers.test.entities.onetomany.ids.SetRefIngMulIdEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithNullsDelete.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithNullsDelete.java index bfd1ed9a37..df8559a630 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithNullsDelete.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BasicSetWithNullsDelete.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.onetomany.SetRefEdEntity; import org.jboss.envers.test.entities.onetomany.SetRefIngEntity; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Set; -import java.util.HashSet; -import java.util.Collections; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BidirectionalMapKey.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BidirectionalMapKey.java index ca5069e576..488eec1a2f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BidirectionalMapKey.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/BidirectionalMapKey.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefEdMapKeyEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefEdMapKeyEntity.java index 7f2db64d39..a299e373b3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefEdMapKeyEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefEdMapKeyEntity.java @@ -1,10 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; -import org.jboss.envers.Versioned; - -import javax.persistence.*; -import java.util.Map; import java.util.HashMap; +import java.util.Map; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.MapKey; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefIngMapKeyEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefIngMapKeyEntity.java index 18fe9b869a..c4834e26d5 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefIngMapKeyEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/RefIngMapKeyEntity.java @@ -1,8 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedList.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedList.java index c3931f926d..32fa5cc350 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedList.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedList.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.ArrayList; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.ListRefCollEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.ListRefCollEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.ArrayList; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSet.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSet.java index 6ecbf1dfc0..52050831e8 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSet.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.SetRefCollEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.SetRefCollEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithEmbId.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithEmbId.java index 262012dd0e..3f0a3005a3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithEmbId.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithEmbId.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.ids.SetRefCollEntityEmbId; -import org.jboss.envers.test.entities.ids.EmbIdTestEntity; import org.jboss.envers.test.entities.ids.EmbId; +import org.jboss.envers.test.entities.ids.EmbIdTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.ids.SetRefCollEntityEmbId; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithMulId.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithMulId.java index ce63abe082..69dda40f69 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithMulId.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicDetachedSetWithMulId.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.ids.SetRefCollEntityMulId; -import org.jboss.envers.test.entities.ids.MulIdTestEntity; import org.jboss.envers.test.entities.ids.MulId; +import org.jboss.envers.test.entities.ids.MulIdTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.ids.SetRefCollEntityMulId; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicJoinColumnSet.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicJoinColumnSet.java index 1f3cb0f2f1..a5911f9ea4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicJoinColumnSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/BasicJoinColumnSet.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.entities.onetomany.detached.SetJoinColumnRefCollEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DataChangesDetachedSet.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DataChangesDetachedSet.java index 70d8053ee4..29f28c842b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DataChangesDetachedSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DataChangesDetachedSet.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.SetRefCollEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.SetRefCollEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DoubleDetachedSet.java b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DoubleDetachedSet.java index 49c199288f..62f750df5e 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DoubleDetachedSet.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetomany/detached/DoubleDetachedSet.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetomany.detached; +import java.util.Arrays; +import java.util.HashSet; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.entities.onetomany.detached.DoubleSetRefCollEntity; import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.onetomany.detached.DoubleSetRefCollEntity; import org.jboss.envers.test.tools.TestTools; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefEdEntity.java index a59ba27ca2..6f5afdd1ec 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefEdEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.OneToOne; import javax.persistence.Id; +import javax.persistence.OneToOne; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefIngEntity.java index d5d64c4890..46b82bb7cc 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BiRefIngEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToOne; +import org.jboss.envers.Versioned; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional.java index 5368bc49ab..e4e962ab0b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional2.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional2.java index bfb8a776a6..cfc38d6fe7 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional2.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/Bidirectional2.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BidirectionalNoNulls.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BidirectionalNoNulls.java index 6eefb3a4e1..782e914182 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BidirectionalNoNulls.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/BidirectionalNoNulls.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefEdEntity.java index 621e93f56d..7966c891c8 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefEdEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.OneToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; -import javax.persistence.Entity; -import javax.persistence.OneToOne; -import javax.persistence.EmbeddedId; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefIngEntity.java index 5e5de97edf..bbce5c32e0 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiEmbIdRefIngEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.OneToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; -import javax.persistence.Entity; -import javax.persistence.OneToOne; -import javax.persistence.EmbeddedId; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefEdEntity.java index 6e596f3423..31c480921f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefEdEntity.java @@ -1,10 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.OneToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.MulId; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefIngEntity.java index b22ebe597d..2783430603 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/BiMulIdRefIngEntity.java @@ -1,10 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.OneToOne; + import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.MulId; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/EmbIdBidirectional.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/EmbIdBidirectional.java index eb4a8ed414..219be1f0ca 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/EmbIdBidirectional.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/EmbIdBidirectional.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.EmbId; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/MulIdBidirectional.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/MulIdBidirectional.java index 796afc2d85..721f87ecb0 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/MulIdBidirectional.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/bidirectional/ids/MulIdBidirectional.java @@ -1,13 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.bidirectional.ids; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.MulId; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefEdEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefEdEntity.java index 5ddeae89e0..0715d78c62 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefEdEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefEdEntity.java @@ -1,9 +1,32 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.unidirectional; -import org.jboss.envers.Versioned; - -import javax.persistence.Id; import javax.persistence.Entity; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * Unidirectional ReferencEd Entity diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefIngEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefIngEntity.java index f2131afd51..d71c769ae2 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefIngEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UniRefIngEntity.java @@ -1,11 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.unidirectional; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToOne; +import org.jboss.envers.Versioned; + /** * Unidirectional ReferencIng Entity * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/Unidirectional.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/Unidirectional.java index 950b8ef397..1698684d3d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/Unidirectional.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/Unidirectional.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.unidirectional; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UnidirectionalWithNulls.java b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UnidirectionalWithNulls.java index 26a4cd26a5..dfc76f9663 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UnidirectionalWithNulls.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/onetoone/unidirectional/UnidirectionalWithNulls.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.onetoone.unidirectional; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/properties/PropertiesTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/properties/PropertiesTestEntity.java index ec491d0a36..32d5c7f905 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/properties/PropertiesTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/properties/PropertiesTestEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.properties; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingField.java b/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingField.java index 775e13bba4..cfeca5f34a 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingField.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingField.java @@ -1,16 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.properties; import java.util.Arrays; import java.util.Iterator; - import javax.persistence.EntityManager; +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.mapping.PersistentClass; import org.hibernate.mapping.Property; -import org.jboss.envers.test.AbstractEntityTest; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; /** * @author Nicolas Doroskevich diff --git a/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingFieldEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingFieldEntity.java index fb31c5d52d..ffed7dd8be 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingFieldEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/properties/UnversionedOptimisticLockingFieldEntity.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.properties; import javax.persistence.Entity; diff --git a/envers/src/test/java/org/jboss/envers/test/integration/properties/VersionsProperties.java b/envers/src/test/java/org/jboss/envers/test/integration/properties/VersionsProperties.java index 38dc6e49f6..1d15459098 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/properties/VersionsProperties.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/properties/VersionsProperties.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.properties; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/AggregateQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/AggregateQuery.java index 8955012ee8..1834c3b05f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/AggregateQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/AggregateQuery.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.IntTestEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/CustomRevEntityQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/CustomRevEntityQuery.java index 542cb72236..abb0e41279 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/CustomRevEntityQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/CustomRevEntityQuery.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.List; +import javax.persistence.EntityManager; + +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrIntTestEntity; import org.jboss.envers.test.entities.reventity.CustomRevEntity; -import org.jboss.envers.query.VersionsRestrictions; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/DeletedEntities.java b/envers/src/test/java/org/jboss/envers/test/integration/query/DeletedEntities.java index 8da552cc4a..98af9b6f2d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/DeletedEntities.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/DeletedEntities.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.List; +import javax.persistence.EntityManager; + +import org.jboss.envers.DefaultRevisionEntity; +import org.jboss.envers.RevisionType; +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrIntTestEntity; -import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.RevisionType; -import org.jboss.envers.DefaultRevisionEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/MaximalizePropertyQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/MaximalizePropertyQuery.java index 0745c617a6..2bd967ed11 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/MaximalizePropertyQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/MaximalizePropertyQuery.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.Arrays; +import java.util.List; +import javax.persistence.EntityManager; + +import org.jboss.envers.query.RevisionProperty; +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrIntTestEntity; -import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.query.RevisionProperty; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/OrderByLimitQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/OrderByLimitQuery.java index 4290ee3df3..5e997d1e57 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/OrderByLimitQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/OrderByLimitQuery.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.Arrays; +import java.util.List; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.IntTestEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/RevisionConstraintQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/RevisionConstraintQuery.java index e1f1a417f1..f86d990e26 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/RevisionConstraintQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/RevisionConstraintQuery.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.Arrays; +import java.util.List; +import javax.persistence.EntityManager; + +import org.jboss.envers.query.RevisionProperty; +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrIntTestEntity; -import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.query.RevisionProperty; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/SimpleQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/SimpleQuery.java index 07f334e979..5c35c768b9 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/SimpleQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/SimpleQuery.java @@ -1,21 +1,45 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import javax.persistence.EntityManager; + +import org.jboss.envers.DefaultRevisionEntity; +import org.jboss.envers.RevisionType; +import org.jboss.envers.query.RevisionProperty; +import org.jboss.envers.query.RevisionTypeProperty; +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrIntTestEntity; import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.query.VersionsRestrictions; -import org.jboss.envers.query.RevisionProperty; -import org.jboss.envers.query.RevisionTypeProperty; -import org.jboss.envers.RevisionType; -import org.jboss.envers.DefaultRevisionEntity; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.HashSet; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/ids/EmbIdOneToManyQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/ids/EmbIdOneToManyQuery.java index 13fdba91f2..f16563d28d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/ids/EmbIdOneToManyQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/ids/EmbIdOneToManyQuery.java @@ -1,19 +1,43 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query.ids; -import org.hibernate.ejb.Ejb3Configuration; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import javax.persistence.EntityManager; + +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; +import org.jboss.envers.test.entities.ids.EmbId; import org.jboss.envers.test.entities.onetomany.ids.SetRefEdEmbIdEntity; import org.jboss.envers.test.entities.onetomany.ids.SetRefIngEmbIdEntity; -import org.jboss.envers.test.entities.ids.EmbId; import org.jboss.envers.test.tools.TestTools; -import org.jboss.envers.query.VersionsRestrictions; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.Set; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/query/ids/MulIdOneToManyQuery.java b/envers/src/test/java/org/jboss/envers/test/integration/query/ids/MulIdOneToManyQuery.java index 9c2bfb2b46..b19bd16b4c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/query/ids/MulIdOneToManyQuery.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/query/ids/MulIdOneToManyQuery.java @@ -1,19 +1,43 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.query.ids; -import org.hibernate.ejb.Ejb3Configuration; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import javax.persistence.EntityManager; + +import org.jboss.envers.query.VersionsRestrictions; import org.jboss.envers.test.AbstractEntityTest; -import org.jboss.envers.test.tools.TestTools; import org.jboss.envers.test.entities.ids.MulId; import org.jboss.envers.test.entities.onetomany.ids.SetRefEdMulIdEntity; import org.jboss.envers.test.entities.onetomany.ids.SetRefIngMulIdEntity; -import org.jboss.envers.query.VersionsRestrictions; +import org.jboss.envers.test.tools.TestTools; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.List; -import java.util.Set; -import java.util.HashSet; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Custom.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Custom.java index 847a55d45d..6ba6bed77d 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Custom.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Custom.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.entities.reventity.CustomRevEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxed.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxed.java index e22e5b3af2..9219c99d3c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxed.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxed.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxedRevEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxedRevEntity.java index 95a2188069..14e805d06a 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxedRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomBoxedRevEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.RevisionEntity; import org.jboss.envers.RevisionNumber; import org.jboss.envers.RevisionTimestamp; -import org.jboss.envers.RevisionEntity; - -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Entity; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomPropertyAccess.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomPropertyAccess.java index ed4e687c5f..fee9a11826 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomPropertyAccess.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/CustomPropertyAccess.java @@ -1,17 +1,41 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.entities.reventity.CustomPropertyAccessRevEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Inherited.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Inherited.java index defe486837..e6f80978b8 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Inherited.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Inherited.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/InheritedRevEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/InheritedRevEntity.java index 06cc7fa3a3..009aaaa622 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/InheritedRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/InheritedRevEntity.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; -import org.jboss.envers.RevisionEntity; -import org.jboss.envers.DefaultRevisionEntity; - import javax.persistence.Entity; +import org.jboss.envers.DefaultRevisionEntity; +import org.jboss.envers.RevisionEntity; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Listener.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Listener.java index fee383c192..19b701f514 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/Listener.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/Listener.java @@ -1,16 +1,40 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/ListenerRevEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/ListenerRevEntity.java index 5dcfde9877..7787cb3cd6 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/ListenerRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/ListenerRevEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.RevisionEntity; import org.jboss.envers.RevisionNumber; import org.jboss.envers.RevisionTimestamp; -import org.jboss.envers.RevisionEntity; - -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Entity; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumber.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumber.java index 8c72fddd24..f33f4d6581 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumber.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumber.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumberRevEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumberRevEntity.java index 65bdc50ce6..58855e9089 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumberRevEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/LongRevNumberRevEntity.java @@ -1,12 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +import org.jboss.envers.RevisionEntity; import org.jboss.envers.RevisionNumber; import org.jboss.envers.RevisionTimestamp; -import org.jboss.envers.RevisionEntity; - -import javax.persistence.Id; -import javax.persistence.GeneratedValue; -import javax.persistence.Entity; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/reventity/TestRevisionListener.java b/envers/src/test/java/org/jboss/envers/test/integration/reventity/TestRevisionListener.java index e7a1ea183a..06d45b10f6 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/reventity/TestRevisionListener.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/reventity/TestRevisionListener.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.reventity; import org.jboss.envers.RevisionListener; diff --git a/envers/src/test/java/org/jboss/envers/test/integration/revfordate/RevisionForDate.java b/envers/src/test/java/org/jboss/envers/test/integration/revfordate/RevisionForDate.java index 9308e8646c..09bdc2bf55 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/revfordate/RevisionForDate.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/revfordate/RevisionForDate.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.revfordate; +import java.util.Date; +import javax.persistence.EntityManager; + +import org.jboss.envers.VersionsReader; +import org.jboss.envers.exception.RevisionDoesNotExistException; import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.exception.RevisionDoesNotExistException; -import org.jboss.envers.VersionsReader; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Date; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity1.java b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity1.java index a86fac07bc..0989635b9c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity1.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity1.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.sameids; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; import javax.persistence.Id; +import org.jboss.envers.Versioned; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity2.java b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity2.java index 74b5fd1dd9..7d0b04171c 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity2.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIdTestEntity2.java @@ -1,10 +1,33 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.sameids; -import org.jboss.envers.Versioned; - import javax.persistence.Entity; import javax.persistence.Id; +import org.jboss.envers.Versioned; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIds.java b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIds.java index 11bb1ab913..739c66ad56 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIds.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/sameids/SameIds.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.sameids; -import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.testng.annotations.Test; -import org.testng.annotations.BeforeClass; - -import javax.persistence.EntityManager; import java.util.Arrays; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.AbstractEntityTest; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import org.hibernate.ejb.Ejb3Configuration; /** * A test which checks that if we add two different entities with the same ids in one revision, they diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/BasicSecondary.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/BasicSecondary.java index 2c0676148c..0c7af216a6 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/BasicSecondary.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/BasicSecondary.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Join; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Join; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/NamingSecondary.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/NamingSecondary.java index 74bd560759..6735bb3305 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/NamingSecondary.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/NamingSecondary.java @@ -1,14 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Join; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Join; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryNamingTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryNamingTestEntity.java index 2e4b753347..0e4db7ef8b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryNamingTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryNamingTestEntity.java @@ -1,10 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.SecondaryTable; + import org.jboss.envers.SecondaryVersionsTable; import org.jboss.envers.Versioned; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryTestEntity.java index e8ac8ff8e1..5340b94c1e 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/SecondaryTestEntity.java @@ -1,8 +1,35 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary; -import org.jboss.envers.Versioned; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.SecondaryTable; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/EmbIdSecondary.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/EmbIdSecondary.java index 8311d1795c..36b35b110b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/EmbIdSecondary.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/EmbIdSecondary.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary.ids; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.EmbId; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Join; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Join; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/MulIdSecondary.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/MulIdSecondary.java index 4101ff02e2..37941fa03f 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/MulIdSecondary.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/MulIdSecondary.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary.ids; +import java.util.Arrays; +import java.util.Iterator; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; import org.jboss.envers.test.entities.ids.MulId; -import org.hibernate.ejb.Ejb3Configuration; -import org.hibernate.mapping.Join; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; -import java.util.Iterator; +import org.hibernate.ejb.Ejb3Configuration; +import org.hibernate.mapping.Join; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryEmbIdTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryEmbIdTestEntity.java index 9f8d8101ca..5c82656e94 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryEmbIdTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryEmbIdTestEntity.java @@ -1,11 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary.ids; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.SecondaryTable; + import org.jboss.envers.SecondaryVersionsTable; import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.EmbId; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryMulIdTestEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryMulIdTestEntity.java index 38c1d3eacd..4611f98fe4 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryMulIdTestEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/secondary/ids/SecondaryMulIdTestEntity.java @@ -1,11 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.secondary.ids; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.SecondaryTable; + import org.jboss.envers.SecondaryVersionsTable; import org.jboss.envers.Versioned; import org.jboss.envers.test.entities.ids.MulId; -import javax.persistence.*; - /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/integration/superclass/MappedSubclassing.java b/envers/src/test/java/org/jboss/envers/test/integration/superclass/MappedSubclassing.java index c48d1b5501..5796ebcaf3 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/superclass/MappedSubclassing.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/superclass/MappedSubclassing.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.superclass; +import java.util.Arrays; +import javax.persistence.EntityManager; + import org.jboss.envers.test.AbstractEntityTest; -import org.hibernate.ejb.Ejb3Configuration; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import javax.persistence.EntityManager; -import java.util.Arrays; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/superclass/SubclassEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/superclass/SubclassEntity.java index aa5b6a7d2f..3b2997ae8b 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/superclass/SubclassEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/superclass/SubclassEntity.java @@ -1,8 +1,31 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.superclass; import javax.persistence.Entity; -import javax.persistence.Id; import javax.persistence.GeneratedValue; +import javax.persistence.Id; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/integration/superclass/SuperclassOfEntity.java b/envers/src/test/java/org/jboss/envers/test/integration/superclass/SuperclassOfEntity.java index f03b2440d2..2937601270 100644 --- a/envers/src/test/java/org/jboss/envers/test/integration/superclass/SuperclassOfEntity.java +++ b/envers/src/test/java/org/jboss/envers/test/integration/superclass/SuperclassOfEntity.java @@ -1,9 +1,32 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.integration.superclass; -import org.jboss.envers.Versioned; - import javax.persistence.MappedSuperclass; +import org.jboss.envers.Versioned; + /** * @author Adam Warski (adam at warski dot org) */ diff --git a/envers/src/test/java/org/jboss/envers/test/performance/AbstractPerformanceTest.java b/envers/src/test/java/org/jboss/envers/test/performance/AbstractPerformanceTest.java index 769d1be75f..87ee3fa650 100644 --- a/envers/src/test/java/org/jboss/envers/test/performance/AbstractPerformanceTest.java +++ b/envers/src/test/java/org/jboss/envers/test/performance/AbstractPerformanceTest.java @@ -1,3 +1,26 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.performance; import org.jboss.envers.test.AbstractEntityTest; diff --git a/envers/src/test/java/org/jboss/envers/test/performance/InsertsPerformance.java b/envers/src/test/java/org/jboss/envers/test/performance/InsertsPerformance.java index 52d7816d02..cb55ab58c6 100644 --- a/envers/src/test/java/org/jboss/envers/test/performance/InsertsPerformance.java +++ b/envers/src/test/java/org/jboss/envers/test/performance/InsertsPerformance.java @@ -1,12 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.performance; +import java.io.IOException; +import javax.persistence.EntityManager; + import org.jboss.envers.test.entities.StrTestEntity; import org.jboss.envers.test.entities.UnversionedStrTestEntity; import org.jboss.envers.tools.Pair; -import org.hibernate.ejb.Ejb3Configuration; -import javax.persistence.EntityManager; -import java.io.IOException; +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/performance/UpdatesPerformance.java b/envers/src/test/java/org/jboss/envers/test/performance/UpdatesPerformance.java index c42999b9af..f6aa80f1c8 100644 --- a/envers/src/test/java/org/jboss/envers/test/performance/UpdatesPerformance.java +++ b/envers/src/test/java/org/jboss/envers/test/performance/UpdatesPerformance.java @@ -1,15 +1,39 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.performance; -import org.jboss.envers.test.entities.StrTestEntity; -import org.jboss.envers.test.entities.UnversionedStrTestEntity; -import org.jboss.envers.tools.Pair; -import org.hibernate.ejb.Ejb3Configuration; - -import javax.persistence.EntityManager; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Random; +import javax.persistence.EntityManager; + +import org.jboss.envers.test.entities.StrTestEntity; +import org.jboss.envers.test.entities.UnversionedStrTestEntity; +import org.jboss.envers.tools.Pair; + +import org.hibernate.ejb.Ejb3Configuration; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/tools/TestTools.java b/envers/src/test/java/org/jboss/envers/test/tools/TestTools.java index 25f15dc908..8713a44d84 100644 --- a/envers/src/test/java/org/jboss/envers/test/tools/TestTools.java +++ b/envers/src/test/java/org/jboss/envers/test/tools/TestTools.java @@ -1,6 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.tools; -import java.util.*; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/various/Address.java b/envers/src/test/java/org/jboss/envers/test/various/Address.java index ba6365f0b0..17ebd4547f 100644 --- a/envers/src/test/java/org/jboss/envers/test/various/Address.java +++ b/envers/src/test/java/org/jboss/envers/test/various/Address.java @@ -1,30 +1,35 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.test.various; -import org.jboss.envers.Versioned; - -import javax.persistence.*; import java.util.Set; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/various/HsqlTest.java b/envers/src/test/java/org/jboss/envers/test/various/HsqlTest.java index 5f28394bd6..bbeb6beabc 100644 --- a/envers/src/test/java/org/jboss/envers/test/various/HsqlTest.java +++ b/envers/src/test/java/org/jboss/envers/test/various/HsqlTest.java @@ -1,13 +1,36 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * Copyright (c) 2008, 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.jboss.envers.test.various; -import org.hibernate.Session; - -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; -import javax.persistence.EntityManager; -import java.util.Map; import java.util.HashMap; import java.util.HashSet; +import java.util.Map; +import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; +import javax.persistence.Persistence; + +import org.hibernate.Session; /** * @author Adam Warski (adam at warski dot org) diff --git a/envers/src/test/java/org/jboss/envers/test/various/Person.java b/envers/src/test/java/org/jboss/envers/test/various/Person.java index afcd47c038..8ab05a1c5c 100644 --- a/envers/src/test/java/org/jboss/envers/test/various/Person.java +++ b/envers/src/test/java/org/jboss/envers/test/various/Person.java @@ -1,29 +1,34 @@ /* - * Envers. http://www.jboss.org/envers + * Hibernate, Relational Persistence for Idiomatic Java * - * Copyright 2008 Red Hat Middleware, LLC. All rights reserved. + * Copyright (c) 2008, 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, v. 2.1. + * 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 A WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * 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, v.2.1 along with this distribution; if not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - * - * Red Hat Author(s): Adam Warski + * 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.jboss.envers.test.various; -import org.jboss.envers.Versioned; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.ManyToOne; -import javax.persistence.*; +import org.jboss.envers.Versioned; /** * @author Adam Warski (adam at warski dot org)