-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove deprecated hibernate structures/functions
apikey.hbm.xml -> apikey.orm.xml Refs: XRDDEV-2713
- Loading branch information
1 parent
8a9529d
commit dbe5429
Showing
6 changed files
with
42 additions
and
27 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
24 changes: 0 additions & 24 deletions
24
src/common/common-admin-api/src/main/resources/apikey.hbm.xml
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
src/common/common-admin-api/src/main/resources/apikey.orm.xml
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,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<entity-mappings xmlns="http://xmlns.jcp.org/xml/ns/persistence/orm" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm | ||
http://java.sun.com/xml/ns/persistence/orm_2_2.xsd" | ||
version="2.2"> | ||
<package>org.niis.xroad.restapi.domain</package> | ||
|
||
<!-- Entity Definition --> | ||
<entity class="PersistentApiKeyType" access="FIELD"> | ||
<table name="APIKEY"/> | ||
|
||
<!-- ID mapping --> | ||
<attributes> | ||
<id name="id" access="FIELD"> | ||
<column name="id"/> | ||
<generated-value strategy="AUTO"/> | ||
</id> | ||
|
||
<!-- Basic properties --> | ||
<basic name="encodedKey"> | ||
<column name="encodedkey"/> | ||
</basic> | ||
|
||
<!-- Enum Set Mapping --> | ||
<element-collection name="roles" access="FIELD" fetch="EAGER"> | ||
<column name="role" nullable="false"/> | ||
<enumerated>STRING</enumerated> | ||
<collection-table name="APIKEY_ROLES"> | ||
<join-column name="apikey_id"/> | ||
</collection-table> | ||
</element-collection> | ||
</attributes> | ||
|
||
</entity> | ||
|
||
</entity-mappings> |
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
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