In Spring, How to mapping same table on Entity? - spring

I want to develop reporting system.
At first, I made [UserReport] table and I put reporter and reportedUser (there are same User type) and I wrote #ManyToOne
but, It doesn't work
Please help me..
Thank you!
I'm not good at English. So I'm sorry for asking question at pooring English
enter image description here
++ I fixed it
The reason is 'explain' is reserved word in MySQL.

Related

Where are the database tables and fields in Banner that relate to Community Education (courses, registration)?

Can anyone please tell me where the database tables and fields on Community Education are in the Oracle database or in ODS? I've looked through the tables and searched online and through Banner documentation but have found absolutely nothing. Thanks for you help.
I think that Community Education courses are just another academic level definition in SGHE or Ellucian Banner, therefore you will check the list of availables level from STVLEVL table.
The catalog of public courses from SCBCRSE table and join with SCRLEVL table.
The specific course by term or academic period from SSBCRSE.
The student registration course from SFRSTCR table.
Perhaps this can help you, to take a look.

Laravel keep information about users on multiple sessions

I'm implementing my database. xD
Should I make changes, but I would like any further information about it, by those who are more experienced than me.
1) Should I make sure to keep a tracking for security reasons.
I would like to create a table "access", which contains the following fields.
id, id_user, browser, os, dates, ip.
What should I change, to ensure that each time the user login, is added a new record in this table.
If you have more tips on how to improve this point, I'd be grateful.
2) I would like to do so you can make the user choose whether the session of his choice or whether permanent or not.
I could only find a way to do it, that the session lasting for a certain period of time.
But I would like to implement a graft.
3) Should I implement multiple sessions, I'll explain.
The possibility that every user experience their sessions, such as facebook ago.
You can see how many active sessions exist and on what date.
I thought at a table like this:
id, id_user, queues, browser, os, dates, ip.
What do you think, you can do what?
If yes, what should I change in the structure of laravel to do this?
Thank you in advance who will help me.
I apologize for my English and the long text.
1) You should use also timestamp that logging table. You can use the built in updated_at and created_at timestamps. In your login function simply create a new instance of the model, populate the attributes and save() it.
2) There is a built in remember me behavior that you can use. More details can be found in the Laravel docs http://laravel.com/docs/4.2/security
3) Can you explain more of why you would want to implement multiple sessions? Why would this be useful for your application?
I hope my answer helps.

Crystal Report creating a receipt register report 2

This question is related to my first question, see it here: Crystal Report creating a receipt register report
I already done some parts of my report with the help of a good person(Siva) but I'm on much bigger problem I think. It's about my sundries section.
In my table
and I want to display my report to look like this.
And this is what I'm getting...
You can see in my table that the record with RefNo: 1003 has a lots of account that has been paid. Unfortunately the reports I'm getting has no record of AccCode: 4200 Housing Loan with a credit of -$40.
I don't know how to achieve this again... I'm placing all the details in a group footer of field name RefNo.
Please someone can help me to this, you can just give me some idea and I try to handle it. Thanks in advance.

Simple Friend System Codeigniter

guys I just want to ask how to make a simple friend system? I already make a table for the friend list and request and i can already add friend but my problem is there is only one account i can add. How could i solve it? If somebody knows please tell me.
Surely you just need a table of users and then a join table called something like users_to_friends where you store the user_id and the user_id of their friend

RedSHOP - mod_products info needed

I'm terribly sorry to post this question here, but RedCOMPONENT just does not bother to answer my forum post or anyone else for that matter.
All I want to know, can this mod_products from RedCOMPONENT display featured products as well as products from a specific brand?
Thanks in advance.
You won't be able to do it with the extension you mentioned unless you code it yourself. I haven't looked into redSHOP majorly before and I;m not going to pay to download the module you mentioned, but in one of the PHP files, there will be some code retrieving the products from a specific table column using an SQL command. You could always try adapting this so that (if features products have their own table column) the SQL command retrieve products from both columns.
Else, you might be interested in this module which shows the features products for RedSHOP.
http://extensions.joomla.org/extensions/extension-specific/redshop-extensions/13964
You should use mod_redshop_featureproduct module.

Resources