import javax.persistence.Entity
@Entity
public class Note implements IsSerializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String notePoster;
}
what is the simple method(simple means the least code) to get the all
records for entity
1. Add a NamedQuery to the class:
@NamedQueries{(
@NamedQuery (name = Note.listAll, query = SELECT n FROM Note n)
)}
2. Use JPA code like this:
ListNote listAll {
em = getEntityManager();
ListNote theList = null;
try {
Query q = em.createNamedQuery(Note.listAll);
Why are you asking us to do your homework?
Anyway, here is a usable reference: Design Patterns Explained, isbn
0-201-71594-1
On Apr 13, 2009, at 11:24 AM, Erdem Bozbağ wrote:
I need three examples for each one
1.
Design Pattern Language
2.
Design Standard
3.
Hi!
I saw that we dont have example pictures in lab exercise, or in homework. But
how we know that our program is good?
Regards,
Biljana
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Java
EE (J2EE)
Hi!
I runed struts-template,
but first made some changes in templates.css, it is:
font_weight:normal;
font_style:normal;
like Karl said, and
before A.link I added one square bracket, and errase one after
A.active{
}
block, that is all I done and it works!
Regards,
Biljana
--- On Tue,
The problems in the following samples in this same module get much worse.
Still unable to resolve. See long past unanswered questions...
~Karl
--- On Tue, 4/14/09, Biljana Biljana biljana_b...@yahoo.com wrote:
From: Biljana Biljana biljana_b...@yahoo.com
Subject: [java ee programming] Re:
Hi!
I copied from struts-template:
class folder in WEB-INF
commons-fileupload.jar
commons-lang.jar
commons-validator.jar
jakarta-oro.jar,
I add library from global
Struts 1.2...
But when I try to run tiles-blank-struts1-1
I got this error:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
I search a way more easy:right click in the project, to search
(resover...) and there is a way for select the '.jar' and resolve
the dependences of libraries.
Regards
Lisandro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
well, it's easy if you can actually find the libraries that need to be
resolved already on your system. Maybe you will be luckier then myself, but you
will most likely find that other samples in this lab module much less obvious
fix. Let me know how 'tiles-channel' works out for you.
~Karl
When trying to modify the project to add the derbyclient.jar the
1020_javajdbc\javajdbc\samples\JDBCSamples\nbproject
\private.properties file tells me access denied. Has anyone else had
this problem with this lab?
--~--~-~--~~~---~--~~
You received this message
10 matches
Mail list logo