Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    simba920529
    @simba920529
    yes
    Mark Schrijver
    @ractoc
    since ID is the primary key, this should always yield 0 or 1 result, hence the findAny
    simba920529
    @simba920529
    i have good in those stream operations.
    i mean,
    Mark Schrijver
    @ractoc
    ok, well, that's all you need to know really
    as soon as you have access to the table manager, all you need is stream logic
    simba920529
    @simba920529
    how could i show 500k records (500 per page) on my datatable?
    you mean should i call filter api 1k times?
    Mark Schrijver
    @ractoc
    streams have skip and limit methods
    simba920529
    @simba920529
    yeah
    Mark Schrijver
    @ractoc
    you could first skip to (pagenumber * 100) and then limit(100)
    this would get you the 100 entries of the requested page
    I haven't tried this recently, but it should work
    anyway, I need to go for a bit
    I'll be back ater tonight
    simba920529
    @simba920529
    so should i create next and previous page button manually for it?
    Mark Schrijver
    @ractoc
    think so yeah
    simba920529
    @simba920529
    oh,not good
    thanks for your time
    simba920529
    @simba920529
    Then could i use search by regex?
    Mark Schrijver
    @ractoc
    well, you can use java stream filters, so I would guess so yeah
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter

    newbie here - still stuck at mvn speedment:tool throwing up error
    [ERROR] Failed to execute goal com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:tool (default-cli) on project partners: Execution default-cli of goal com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:tool failed: A required class was missing while executing com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:reload: javafx.beans.property.BooleanProperty

    how do i point it to the javafx libraries on disk?

    Per-Åke Minborg
    @minborg
    You must use a Java 8 version that includes JavaFX (e.g. Oracle). You can also use any Java 11 for example whereby JavaFX will be pulled in as an external dependency.
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    ah, i'm using openJDK 1.8
    no way around it to include the Javafx separately?
    Per-Åke Minborg
    @minborg
    You could try to add a dependency to the plugin itself
                <dependencies>
                    <dependency>
                        <groupId>org.openjfx</groupId>
                        <artifactId>javafx-controls</artifactId>
                        <version>${org.openjfx.version}</version>
                    </dependency>
    
                    <dependency>
                        <groupId>org.openjfx</groupId>
                        <artifactId>javafx-fxml</artifactId>
                        <version>${org.openjfx.version}</version>
                    </dependency>
    
    
                </dependencies>
    These two dependencies
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    where do i add these? to the project pom?
    Per-Åke Minborg
    @minborg
    Yes. Under the speedment-maven-plugin
    Not in the general dependencies
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    ok let me try
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    Tried openJFX 11.0.2 and 14.0.1 - same error
    [ERROR] Failed to execute goal com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:tool (default-cli) on project partners: Execution default-cli of goal com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:tool failed: An API incompatibility was encountered while executing com.speedment.enterprise:speedment-enterprise-maven-plugin:3.2.9:tool: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=javafx/beans/property/BooleanProperty, offset=6
    Per-Åke Minborg
    @minborg
    Can you please show the code in your pom.xml file?
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                </plugin>
                <plugin>
                    <groupId>com.speedment.enterprise</groupId>
                    <artifactId>speedment-enterprise-maven-plugin</artifactId>
                    <version>${speedment.version}</version>
    
                    <configuration>
                        <components>
                            <component>com.speedment.enterprise.plugins.spring.SpringGeneratorBundle</component>
                        </components>
                        <appName>${project.artifactId}</appName>
                        <packageName>${project.groupId}</packageName>
                    </configuration>
    
                    <dependencies>
                        <dependency>
                            <groupId>org.mariadb.jdbc</groupId>
                            <artifactId>mariadb-java-client</artifactId>
                            <version>${mariadb.version}</version>
                            <scope>runtime</scope>
    
                        </dependency>
                        <dependency>
                            <groupId>org.openjfx</groupId>
                            <artifactId>javafx-controls</artifactId>
                            <version>${org.openjfx.version}</version>
                        </dependency>
    
                        <dependency>
                            <groupId>org.openjfx</groupId>
                            <artifactId>javafx-fxml</artifactId>
                            <version>${org.openjfx.version}</version>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
    do you need the rest of it too?
    Per-Åke Minborg
    @minborg
    That looks correct.
    No
    Would it be possible for you to run the actual tool under Java11? You app can be run under any Java once the tool is done with?
    It is only the tool that needs JavaFX. Not the generated code/
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    that makes sense.
    Per-Åke Minborg
    @minborg
    Let me know if it works out for you! Good luck!
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    thank you!
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    i had a jre8 from oracle, just pointed to that and it worked
    didnt want to register with Oracle for 11
    Did i misunderstand the licensing? I chose the less than 500MB DB one - it has generated some java files in src/main - but I don't see anything in the TreeView below my DBname
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    i'm using MariaDB, does this license work with Hyperstream only?
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    ok, deleted speedment.json and ran tool again - now I see the tables
    Kishor Bhagwat
    @aaaaarrrgghhh_twitter
    aw shucks, now Generate fails
    Writing write-always classes: 2020-04-30T10:46:47.976Z ERROR [JavaFX Application Thread] (c.s.t.c.i.u.ConfigFileHelper) - Error! Failed to generate code. A NullPointerException was thrown. java.lang.NullPointerException at com.speedment.runtime.config.util.DocumentDbUtil.isSame(DocumentDbUtil.java:320) at com.speedment.generator.standard.internal.util.InternalForeignKeyUtil.lambda$getForeignKey$6(InternalForeignKeyUtil.java:331) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) .....and so on
    Per-Åke Minborg
    @minborg
    Strange. I have never seen that before...