Browse Source
We now build a correct count query for entities that use a compound key mapped using @IdClass. Added integration tests for EclipseLink and OpenJPA to run the basic tests of SimpleJpaRepository against different persistence providers. Ignored failing test against OpenJPA.pull/20/head
8 changed files with 193 additions and 10 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
/* |
||||
* Copyright 2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
package org.springframework.data.jpa.repository.support; |
||||
|
||||
import org.springframework.test.context.ContextConfiguration; |
||||
|
||||
/** |
||||
* Integration tests to execute {@link JpaRepositoryTests} against EclipseLink. |
||||
* |
||||
* @author Oliver Gierke |
||||
*/ |
||||
@ContextConfiguration("classpath:eclipselink.xml") |
||||
public class EclipseLinkJpaRepositoryTests extends JpaRepositoryTests { |
||||
|
||||
} |
||||
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
/* |
||||
* Copyright 2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
package org.springframework.data.jpa.repository.support; |
||||
|
||||
import org.junit.Ignore; |
||||
import org.springframework.test.context.ContextConfiguration; |
||||
|
||||
/** |
||||
* Integration tests to execute {@link JpaRepositoryTests} against OpenJpa. |
||||
* |
||||
* @author Oliver Gierke |
||||
*/ |
||||
@ContextConfiguration("classpath:openjpa.xml") |
||||
public class OpenJpaJpaRepositoryTests extends JpaRepositoryTests { |
||||
|
||||
/* |
||||
* (non-Javadoc) |
||||
* @see org.springframework.data.jpa.repository.support.JpaRepositoryTests#testCrudOperationsForCompoundKeyEntity() |
||||
*/ |
||||
@Override |
||||
@Ignore |
||||
public void testCrudOperationsForCompoundKeyEntity() throws Exception { |
||||
} |
||||
} |
||||
Loading…
Reference in new issue