Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
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 afd08334
authored
Mar 20, 2010
by
System Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting..
1 parent
fffdd55d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/UserBean.java
code/LanBortalDatabase/src/META-INF/persistence.xml
code/LanBortalWeb/src/resources/i18n_en.properties
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
View file @
afd0833
No preview for this file type
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/UserBean.java
View file @
afd0833
...
...
@@ -20,8 +20,7 @@ import fi.insomnia.bortal.model.User;
@Stateless
public
class
UserBean
implements
UserBeanLocal
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UserBean
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UserBean
.
class
);
/**
* Java EE container injektoi tämän luokkamuuttujan luokan luonnin
* yhteydessä.
...
...
@@ -43,7 +42,6 @@ public class UserBean implements UserBeanLocal {
// TODO: Hash function....
returnUser
.
setPassword
(
password
);
// Tallennetaan olio kantaan...
userFacade
.
create
(
returnUser
);
return
returnUser
;
...
...
@@ -61,7 +59,7 @@ public class UserBean implements UserBeanLocal {
}
public
User
getUser
(
String
nick
)
{
return
userFacade
.
findByLogin
(
nick
);
return
userFacade
.
findByLogin
(
nick
);
}
}
code/LanBortalDatabase/src/META-INF/persistence.xml
View file @
afd0833
...
...
@@ -3,7 +3,7 @@
<persistence-unit
name=
"BortalDb"
transaction-type=
"JTA"
>
<jta-data-source>
jdbc/bortal
</jta-data-source>
<properties>
<property
name=
"eclipselink.ddl-generation"
value=
"
drop-and-
create-tables"
/>
<property
name=
"eclipselink.ddl-generation"
value=
"create-tables"
/>
<property
name=
"eclipselink.ddl-generation.output-mode"
value=
"database"
/>
</properties>
</persistence-unit>
...
...
code/LanBortalWeb/src/resources/i18n_en.properties
View file @
afd0833
user.username
=
K
yttj
tunnus
user.username
=
K
\u
00e4ytt
\u
00e4j
\u
00e4
tunnus
user.realname
=
Nimi
user.password
=
Salasana
user.email
=
S
hk
postiosoite
user.email
=
S
\u
00e4hk
\u
00e4
postiosoite
user.phone
=
Puhelinnumero
user.bankaccount
=
Tilinumero
user.bank
=
Pankki
save
=
Tallenna
cancel
=
Peruuta
login.username
=
K
yttj
tunnus:
login.username
=
K
\u
00e4ytt
\u
00e4j
\u
00e4
tunnus:
login.password
=
Salasana:
login.submit
=
Kirjaudu sisn
login.submit
=
Kirjaudu sis
\u
00e4
\u
00e4
n
user.validate.notUniqueUsername
=
i18n K
yttjtunnus on jo olemassa. Ole hyv
ja valitse toinen tunnus.
user.validate.notUniqueUsername
=
i18n K
\u
00e4ytt
\u
00e4j
\u
00e4tunnus on jo olemassa. Ole hyv
\u
00e4
ja valitse toinen tunnus.
fallbackstr
=
"fallback default"
teststr
=
default locale test
defaultstr
=
"Something default..."
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