Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5488633b
authored
Nov 17, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postgresql tuning
1 parent
525d5511
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
4 deletions
code/LanBortal/EarContent/lib/org.ancoron.postgresql.jpa-9.1.901.jdbc4.1-rc6.jar
code/LanBortal/EarContent/lib/org.postgresql-9.1.901.jdbc4.1-rc6.jar
code/LanBortal/EarContent/lib/org.postgresql.net-9.1.901.jdbc4.1-rc6.jar
code/LanBortalDatabase/src/META-INF/MANIFEST.MF
code/LanBortalDatabase/src/META-INF/persistence.xml
code/LanBortalDatabase/src/fi/insomnia/bortal/database/BortalPostgreSQLPlatform.java
code/LanBortal/EarContent/lib/org.ancoron.postgresql.jpa-9.1.901.jdbc4.1-rc6.jar
0 → 100644
View file @
5488633
No preview for this file type
code/LanBortal/EarContent/lib/org.postgresql-9.1.901.jdbc4.1-rc6.jar
0 → 100644
View file @
5488633
No preview for this file type
code/LanBortal/EarContent/lib/org.postgresql.net-9.1.901.jdbc4.1-rc6.jar
0 → 100644
View file @
5488633
No preview for this file type
code/LanBortalDatabase/src/META-INF/MANIFEST.MF
View file @
5488633
Manifest-Version: 1.0
Manifest-Version: 1.0
Class-Path: bcprov-jdk16-146.jar
Class-Path: bcprov-jdk16-146.jar
bcmail-jdk16-146.jar
bcmail-jdk16-146.jar
LanBortalUtilities.jar
LanBortalUtilities.jar
org.ancoron.postgresql.jpa-9.1.901.jdbc4.1-rc6.jar
org.postgresql-9.1.901.jdbc4.1-rc6.jar
org.postgresql.net-9.1.901.jdbc4.1-rc6.jar
code/LanBortalDatabase/src/META-INF/persistence.xml
View file @
5488633
...
@@ -11,9 +11,11 @@
...
@@ -11,9 +11,11 @@
value=
"database"
/>
value=
"database"
/>
<property
name=
"eclipselink.logging.logger"
value=
"ServerLogger"
/>
<property
name=
"eclipselink.logging.logger"
value=
"ServerLogger"
/>
<property
name=
"eclipselink.jdbc.uppercase-columns"
value=
"false"
/>
<property
name=
"eclipselink.jdbc.uppercase-columns"
value=
"false"
/>
<!-- <property name="eclipselink.target-database"
<property
name=
"eclipselink.target-database"
value="fi.insomnia.bortal.database.LanBortalPostgresqlPlatform" /> -->
value=
"fi.insomnia.bortal.database.BortalPostgreSQLPlatform"
/>
<property
name=
"eclipselink.session-event-listener"
value=
"org.ancoron.postgresql.jpa.eclipselink.ConverterInitializer"
/>
</properties>
</properties>
</persistence-unit>
</persistence-unit>
</persistence>
</persistence>
code/LanBortalDatabase/src/fi/insomnia/bortal/database/BortalPostgreSQLPlatform.java
0 → 100644
View file @
5488633
package
fi
.
insomnia
.
bortal
.
database
;
import
java.util.Hashtable
;
import
org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition
;
import
org.eclipse.persistence.platform.database.PostgreSQLPlatform
;
public
class
BortalPostgreSQLPlatform
extends
PostgreSQLPlatform
{
private
static
final
long
serialVersionUID
=
6351395815598077327L
;
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Override
protected
Hashtable
buildFieldTypes
()
{
Hashtable
map
=
super
.
buildFieldTypes
();
map
.
put
(
String
.
class
,
new
FieldTypeDefinition
(
"TEXT"
,
false
));
map
.
put
(
java
.
sql
.
Timestamp
.
class
,
new
FieldTypeDefinition
(
"TIMESTAMPTZ"
,
false
));
return
map
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment