-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple
JpaDataStore
(#2998)
* Add data store customizer * Add jta transaction manager for testing * Fix reverse the order that the transactions are committed * Add support in annotation to list managed classes * Add datastore customization * Fix test due to lock contention * Update pom * Remove synchronized blocks
- Loading branch information
1 parent
30816cb
commit 855ab18
Showing
37 changed files
with
2,025 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ dependency-reduced-pom.xml | |
*.factorypath | ||
*.vscode | ||
.DS_Store | ||
tmlog*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
elide-core/src/main/java/com/yahoo/elide/core/utils/ObjectCloner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2023, the original author or authors. | ||
* Licensed under the Apache License, Version 2.0 | ||
* See LICENSE file in project root for terms. | ||
*/ | ||
package com.yahoo.elide.core.utils; | ||
|
||
import com.yahoo.elide.core.type.ClassType; | ||
import com.yahoo.elide.core.type.Type; | ||
|
||
/** | ||
* Clones an object. | ||
*/ | ||
@FunctionalInterface | ||
public interface ObjectCloner { | ||
<T> T clone(T source, Type<?> cls); | ||
|
||
default <T> T clone(T source) { | ||
return clone(source, ClassType.of(source.getClass())); | ||
} | ||
} |
Oops, something went wrong.