Posts

Showing posts from April 15, 2019

How can I delete a single object from a list of objects in One to Many Hibernate Mapping using Criteria API?

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I am trying to store details of a user along with his favorite team details also. He can change his favorite team any time. An user can have several properties, among which he can have multiple Favorite Teams. Thus, I have made a UserEntity class with a set of FavoriteTeam class as follow (which is obviously one to many mapping) @OneToMany(cascade=CascadeType.ALL) @JoinTable(name="LookupTable", joinColumns=@JoinColumn(name="userID", referencedColumnName="id"), inverseJoinColumns=@JoinColumn(name="favTeamId", referencedColumnName="teamId",unique=true)) private Set<Favour

Missing BC Math or GMP extension in Laravel

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I am running Laravel 5.7.14 on PHP 7.2-fpm on Ubuntu 16.04. My code in the local environment was working fine, but once I uploaded it to the production server I got this error message: Missing BC Math or GMP extension. I have installed both GMP + BC Math. When I run the command php -i | grep -i bcmath I get this: /etc/php/7.2/cli/conf.d/20-bcmath.ini, bcmath BCMath support => enabled bcmath.scale => 0 => 0 When I run php -m I get this: [PHP Modules] bcmath calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mysqli mysqlnd openssl