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 add711cc
authored
Feb 08, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'barcodefuckup' of codecrew.fi:tkfftk/moya into barcodefuckup
2 parents
2e74c684
6c45b6a2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
33 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/facade/CardBarcodeFacade.java
code/MoyaDatabase/src/fi/codecrew/moya/model/CardBarcode.java
code/MoyaUtilities/src/main/java/fi/codecrew/moya/utilities/JpegReader.java
test.foo
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
View file @
add711c
...
@@ -34,6 +34,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -34,6 +34,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
dbUpdates
.
add
(
new
String
[]
{
"DELETE FROM application_permissions WHERE application = 'MAP' and permission = 'RELEASE_PLACE'"
});
dbUpdates
.
add
(
new
String
[]
{
"DELETE FROM application_permissions WHERE application = 'MAP' and permission = 'RELEASE_PLACE'"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE site_page_content ADD COLUMN locale varchar(10)"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE site_page_content ADD COLUMN locale varchar(10)"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE products ALTER COLUMN vat TYPE NUMERIC(4,3)"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE products ALTER COLUMN vat TYPE NUMERIC(4,3)"
});
dbUpdates
.
add
(
new
String
[]
{
"DELETE TABLE card_barcode"
});
}
}
@EJB
@EJB
...
...
code/MoyaBeans/ejbModule/fi/codecrew/moya/facade/CardBarcodeFacade.java
View file @
add711c
...
@@ -3,14 +3,14 @@ package fi.codecrew.moya.facade;
...
@@ -3,14 +3,14 @@ package fi.codecrew.moya.facade;
import
javax.ejb.LocalBean
;
import
javax.ejb.LocalBean
;
import
javax.ejb.Stateless
;
import
javax.ejb.Stateless
;
import
fi.codecrew.moya.model.Card
Barc
ode
;
import
fi.codecrew.moya.model.Card
C
ode
;
@Stateless
@Stateless
@LocalBean
@LocalBean
public
class
CardBarcodeFacade
extends
IntegerPkGenericFacade
<
Card
Barc
ode
>
{
public
class
CardBarcodeFacade
extends
IntegerPkGenericFacade
<
Card
C
ode
>
{
public
CardBarcodeFacade
()
{
public
CardBarcodeFacade
()
{
super
(
Card
Barc
ode
.
class
);
super
(
Card
C
ode
.
class
);
}
}
}
}
code/MoyaDatabase/src/fi/codecrew/moya/model/CardBarcode.java
deleted
100644 → 0
View file @
2e74c68
package
fi
.
codecrew
.
moya
.
model
;
import
javax.persistence.Entity
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
org.eclipse.persistence.annotations.OptimisticLocking
;
import
org.eclipse.persistence.annotations.OptimisticLockingType
;
@Entity
@Table
(
name
=
"card_barcode"
)
@OptimisticLocking
(
type
=
OptimisticLockingType
.
CHANGED_COLUMNS
)
public
class
CardBarcode
extends
GenericEntity
{
private
static
final
long
serialVersionUID
=
4771609802672223277L
;
@ManyToOne
@JoinColumn
(
name
=
"printed_cards_id"
)
private
PrintedCard
printedCard
;
public
PrintedCard
getPrintedCard
()
{
return
printedCard
;
}
public
void
setPrintedCard
(
PrintedCard
printedCard
)
{
this
.
printedCard
=
printedCard
;
}
}
code/MoyaUtilities/src/main/java/fi/codecrew/moya/utilities/JpegReader.java
View file @
add711c
...
@@ -66,11 +66,11 @@ public class JpegReader {
...
@@ -66,11 +66,11 @@ public class JpegReader {
return
null
;
return
null
;
}
}
public
void
checkAdobeMarker
(
File
file
)
throws
IOException
,
ImageReadException
{
public
void
checkAdobeMarker
(
File
file
)
throws
IOException
,
ImageReadException
{
JpegImageParser
parser
=
new
JpegImageParser
();
JpegImageParser
parser
=
new
JpegImageParser
();
ByteSource
byteSource
=
new
ByteSourceFile
(
file
);
ByteSource
byteSource
=
new
ByteSourceFile
(
file
);
@SuppressWarnings
(
"rawtypes"
)
List
<
Segment
>
segments
=
parser
.
readSegments
(
byteSource
,
new
int
[]
{
0xffee
},
true
);
List
<
Segment
>
segments
=
parser
.
readSegments
(
byteSource
,
new
int
[]
{
0xffee
},
true
);
if
(
segments
!=
null
&&
segments
.
size
()
>=
1
)
{
if
(
segments
!=
null
&&
segments
.
size
()
>=
1
)
{
UnknownSegment
app14Segment
=
(
UnknownSegment
)
segments
.
get
(
0
);
UnknownSegment
app14Segment
=
(
UnknownSegment
)
segments
.
get
(
0
);
...
...
test.foo
deleted
100644 → 0
View file @
2e74c68
Jotain todella järkevää ja kivaa jota kaikki haluaa
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