eugene malcolumn

Ranch Hand
+ Follow
since Jun 11, 2016
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by eugene malcolumn

Dave Tolls wrote:I expect there's something in the docs.
I'm not too sure why it thought it ought to create a mapping table.

Actually, thinking about it, isn't this actually a many to many?
If a single Filter (in the form of a FilterGroup) can map to many Filters, those Filters are (by their nature) mapped in reverse to the original Filter.

In fact, looking at your model, I think your model is not quite right.
If a FilterGroup is a collection of Filters, then why are you extending Filter?
That seems to me to be the base of the problem.
It may be correct, but it looks a bit odd to me.

we are extending filter because in list<filtergroups> we want to have both types filters and filtergroups

Dave Tolls wrote:I assume its based around this:

That would result in a Filter referencing multiple other filters.

whats the logic behind creation of tables by hibernate?

Dave Tolls wrote:Can you explain what your issue is?
Those screenshots don't really help.

NOT ABLE TO UNDERSTAND HOW hibernate created that second screen shot table its ddl is as follows

CREATE TABLE `filter_filters` (
 `filter_group_filterid` bigint(20) NOT NULL,
 `filters_filterid` bigint(20) NOT NULL,
 UNIQUE KEY `UK_rsa1av2x642tgpa22y27miqt5` (`filters_filterid`),
 KEY `FKnnui937n1nqplxnblb0kbmqi9` (`filter_group_filterid`),
 CONSTRAINT `FKfipmxo5r7r5xpis68afxqs1tg` FOREIGN KEY (`filters_filterid`) REFERENCES `filter` (`filterid`),
 CONSTRAINT `FKnnui937n1nqplxnblb0kbmqi9` FOREIGN KEY (`filter_group_filterid`) REFERENCES `filter` (`filterid`)

eugene malcolumn wrote:

i dont know why these images are not visible

above is the output code

the classes are

posted data

<b>cant understand the second table</b>

still above code is creating a bean for hi5
5 years ago

Stephan van Hulst wrote:I'm sorry, I can't understand what you wrote. Please be more clear in what you're trying to do and what the problem is.

how do i make a POJO for this?
5 years ago

Stephan van Hulst wrote:

eugene malcolumn wrote:wanted to create a java client only.

Okay, so what's stopping you? If you know whether the response is going to be in JSON or XML or something you can use the appropriate parser, then look for the _links property and display them in a component that handles navigation for you.

whats the type to catch-in a hrefih hateoas??
5 years ago

Stephan van Hulst wrote:Well, it depends on the format in which your REST API sends its responses. For instance, if you follow the quick start here, you will get a response from the server similar to:

You can create a very simple JavaScript client that displays the content, and adds a navigation bar that contains a home button that links to the root page, a refresh button that links to the "self" url, and additional buttons for any other links that may appear in the "_links" property.

wanted to create a java client only.
5 years ago

Stephan van Hulst wrote:Please make your question a little bit clearer.

There's no such thing as "a hateos". It's HATEOAS and it's an abstract concept and not "something you can call".

What link do you want to get? From where?

just wanna know client code with a bit explanation...
5 years ago
how to get link when we call a hateos in spring rest??
5 years ago

These are the types of files we require when we dont use spring-boot.
do we require them when we use spring -boot..
if these files are alraedy arranged by boot then where is the location?
5 years ago