Hajdu Attila

Greenhorn
+ Follow
since Mar 05, 2010
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hajdu Attila

Paul Sturrock wrote:What is a "sub-primary" key?



courseId is a element of multiple primary key of Checks table.

Check.java


CheckId.java


This code don't create row in Users_Course... I know, if I create some new instances of UserCourse with "modifiedCourseId" courseId, rows are created.
But if this row is edited, I have to edit all instance in database, where courseId is "sub-primary key".

Any idea for editing Curse entity?

James Sutherland wrote:What do you mean by "edit", update?


Simple update courseId, for example...

Before:
Curses
curse_id semester_id ....
old 2010
old2 2010

Users_curses
curse_id semester_id user_id ...
old 2010 shark300

After:
Curses
curse_id semester_id ....
new 2010
old2 2010

Users_curses
curse_id semester_id user_id ...
new 2010 shark300

Any idea for editing Curse entity?

David Newton wrote:(Off-topic: are you keeping a list of the swear words the students use? ;) It's "course", not "curse" :)


Thank you for your comments! It's meaning course, of course :mrgreen:
OFF: My university have "NEPTUN" web based education system, and theme of my thesis is a same system. In NEPTUN, it's "curse"...
I have a problem: I can't know, how edit primary key, if this key is a foreign key...
ER:

I want to edit curseId, but I can't...

User.java


Curse.java


CurseId.java


UserCurse.java


UserCurseId.java


Thanks for helping!
Hi,

I have 2 normal tables, and a view table.

Curse.java:


UserCurse.java:


And a view table

View table reprezenter class:


I want to


I catch: database.DataAccessLayerException: org.hibernate.hql.ast.QuerySyntaxException: Path expected for join!
Thank you!